diff --git a/tests/dispatch/tests.py b/tests/dispatch/tests.py index 04fb39454d..2377dcff8a 100644 --- a/tests/dispatch/tests.py +++ b/tests/dispatch/tests.py @@ -1,6 +1,5 @@ import gc import sys -import time import weakref from types import TracebackType @@ -8,14 +7,7 @@ from django.dispatch import Signal, receiver from django.test import SimpleTestCase from django.test.utils import override_settings -if sys.platform.startswith('java'): - def garbage_collect(): - # Some JVM GCs will execute finalizers in a different thread, meaning - # we need to wait for that to complete before we go on looking for the - # effects of that. - gc.collect() - time.sleep(0.1) -elif hasattr(sys, "pypy_version_info"): +if hasattr(sys, 'pypy_version_info'): def garbage_collect(): # Collecting weakreferences can take two collections on PyPy. gc.collect()