mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Refs #34986 -- Added django.utils.version.PYPY.
This commit is contained in:
parent
174369a990
commit
9baaf89eed
3 changed files with 7 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue