summaryrefslogtreecommitdiff
path: root/tests/runtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runtests.py')
-rwxr-xr-xtests/runtests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index e03966410b..48beb1a3d7 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -52,7 +52,8 @@ 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.
-gc.set_threshold(100_000)
+if not hasattr(sys, "pypy_version_info"):
+ gc.set_threshold(100_000)
RUNTESTS_DIR = os.path.abspath(os.path.dirname(__file__))