summaryrefslogtreecommitdiff
path: root/tests/dispatch
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dispatch')
-rw-r--r--tests/dispatch/tests.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/dispatch/tests.py b/tests/dispatch/tests.py
index 8e72e626dd..18426d8dd1 100644
--- a/tests/dispatch/tests.py
+++ b/tests/dispatch/tests.py
@@ -1,23 +1,9 @@
-import gc
import weakref
from types import TracebackType
from django.dispatch import Signal, receiver
from django.test import SimpleTestCase
-from django.test.utils import override_settings
-from django.utils.version import PYPY
-
-if PYPY:
-
- def garbage_collect():
- # Collecting weakreferences can take two collections on PyPy.
- gc.collect()
- gc.collect()
-
-else:
-
- def garbage_collect():
- gc.collect()
+from django.test.utils import garbage_collect, override_settings
def receiver_1_arg(val, **kwargs):