diff options
author | Nick Pope <nick.pope@flightdataservices.com> | 2019-11-06 15:08:12 +0000 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-12-19 16:42:12 +0100 |
commit | a2d894b2e41b61f376997e9ad4176bcb51a66dd1 (patch) | |
tree | 7c02a412f73840c8fcd0a06cca5e5f0b666ca492 /tests/dispatch | |
parent | a3fc24f01484d4bdd106bc6d7c49049fc5352af6 (diff) | |
download | django-a2d894b2e41b61f376997e9ad4176bcb51a66dd1.tar.gz |
Refs #28954 -- Removed remaining Jython-specific code from dispatch tests.
Missed in 23b21db31bfcf2a065d485617412cca43a311a4c.
Diffstat (limited to 'tests/dispatch')
-rw-r--r-- | tests/dispatch/tests.py | 10 |
1 files changed, 1 insertions, 9 deletions
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() |