From 9baaf89eed42f9e747c774bc79543f47ea9697f8 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Tue, 21 Nov 2023 15:11:09 +0000 Subject: Refs #34986 -- Added django.utils.version.PYPY. --- tests/dispatch/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/dispatch') diff --git a/tests/dispatch/tests.py b/tests/dispatch/tests.py index 2cd7bc8094..8e72e626dd 100644 --- a/tests/dispatch/tests.py +++ b/tests/dispatch/tests.py @@ -1,13 +1,13 @@ import gc -import sys 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 hasattr(sys, "pypy_version_info"): +if PYPY: def garbage_collect(): # Collecting weakreferences can take two collections on PyPy. -- cgit v1.3