From a2d894b2e41b61f376997e9ad4176bcb51a66dd1 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Wed, 6 Nov 2019 15:08:12 +0000 Subject: [PATCH] Refs #28954 -- Removed remaining Jython-specific code from dispatch tests. Missed in 23b21db31bfcf2a065d485617412cca43a311a4c. --- tests/dispatch/tests.py | 10 +--------- 1 file changed, 1 insertion(+), 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()