1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #34986 -- Added django.utils.version.PYPY.

This commit is contained in:
Nick Pope
2023-11-21 15:11:09 +00:00
committed by Mariusz Felisiak
parent 174369a990
commit 9baaf89eed
3 changed files with 7 additions and 4 deletions

View File

@@ -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.