summaryrefslogtreecommitdiff
path: root/tests/dispatch
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2019-11-06 15:08:12 +0000
committerCarlton Gibson <carlton.gibson@noumenal.es>2019-12-19 16:42:12 +0100
commita2d894b2e41b61f376997e9ad4176bcb51a66dd1 (patch)
tree7c02a412f73840c8fcd0a06cca5e5f0b666ca492 /tests/dispatch
parenta3fc24f01484d4bdd106bc6d7c49049fc5352af6 (diff)
downloaddjango-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.py10
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()