diff --git a/openedx/core/djangoapps/user_api/accounts/tests/test_views.py b/openedx/core/djangoapps/user_api/accounts/tests/test_views.py index 0d91b86da3..57ea85d0aa 100644 --- a/openedx/core/djangoapps/user_api/accounts/tests/test_views.py +++ b/openedx/core/djangoapps/user_api/accounts/tests/test_views.py @@ -13,6 +13,7 @@ from student.models import UserProfile TEST_PASSWORD = "test" + @ddt.ddt @unittest.skipUnless(settings.ROOT_URLCONF == 'lms.urls', 'Test only valid in lms') class TestAccountAPI(APITestCase): diff --git a/openedx/core/operations.py b/openedx/core/operations.py index 363d50c508..8f25868a13 100644 --- a/openedx/core/operations.py +++ b/openedx/core/operations.py @@ -10,6 +10,7 @@ def dump_memory(signum, frame): """Dump memory stats for the current process to a temp directory. Uses the meliae output format.""" scanner.dump_all_objects('{}/meliae.{}.{}.dump'.format(tempfile.gettempdir(), datetime.now().isoformat(), os.getpid())) + def install_memory_dumper(dump_signal=signal.SIGPROF): """ Install a signal handler on `signal` to dump memory stats for the current process.