diff --git a/edx_arch_experiments/datadog_monitoring/tests/test_apps.py b/edx_arch_experiments/datadog_monitoring/tests/test_apps.py index a1f5273..cf03b4d 100644 --- a/edx_arch_experiments/datadog_monitoring/tests/test_apps.py +++ b/edx_arch_experiments/datadog_monitoring/tests/test_apps.py @@ -19,4 +19,5 @@ def test_signal_has_receiver(self): to be re-added during a call to ready, presumably because the signal was already imported. """ - assert worker_process_init.receivers[0][1].__name__ == 'init_worker_process' + # the name of the function is in the weakref __repr__ + assert 'init_worker_process' in worker_process_init.receivers[0][1].__repr__()