mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #34986 -- Added django.utils.version.PYPY.
This commit is contained in:
committed by
Mariusz Felisiak
parent
174369a990
commit
9baaf89eed
@@ -30,7 +30,7 @@ else:
|
||||
from django.test.utils import NullTimeKeeper, TimeKeeper, get_runner
|
||||
from django.utils.deprecation import RemovedInDjango60Warning
|
||||
from django.utils.log import DEFAULT_LOGGING
|
||||
from django.utils.version import PY312
|
||||
from django.utils.version import PY312, PYPY
|
||||
|
||||
try:
|
||||
import MySQLdb
|
||||
@@ -52,7 +52,7 @@ warnings.simplefilter("error", RuntimeWarning)
|
||||
# references, which are a minority, so the garbage collection threshold can be
|
||||
# larger than the default threshold of 700 allocations + deallocations without
|
||||
# much increase in memory usage.
|
||||
if not hasattr(sys, "pypy_version_info"):
|
||||
if not PYPY:
|
||||
gc.set_threshold(100_000)
|
||||
|
||||
RUNTESTS_DIR = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
Reference in New Issue
Block a user