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:
committed by
Mariusz Felisiak
parent
174369a990
commit
9baaf89eed
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user