summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-02-28 22:41:09 (GMT)
committerGitHub <noreply@github.com>2021-02-28 22:41:09 (GMT)
commitaf5fa13ef6f648fc7a7a33a7556db13887e7d643 (patch)
treefaa0ffb9e99a6ae822b9c464a7cb044a8dc8e94f /Lib/test/libregrtest
parente8f5ddd33e44dae4e0121f87a7bf92d754807e49 (diff)
downloadcpython-af5fa13ef6f648fc7a7a33a7556db13887e7d643.zip
cpython-af5fa13ef6f648fc7a7a33a7556db13887e7d643.tar.gz
cpython-af5fa13ef6f648fc7a7a33a7556db13887e7d643.tar.bz2
bpo-37146: Deactivate opcode cache only when using huntrleaks in the test suite (GH-24643)
Diffstat (limited to 'Lib/test/libregrtest')
-rw-r--r--Lib/test/libregrtest/setup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/setup.py b/Lib/test/libregrtest/setup.py
index 1f264c1..7738d4f 100644
--- a/Lib/test/libregrtest/setup.py
+++ b/Lib/test/libregrtest/setup.py
@@ -62,6 +62,7 @@ def setup_tests(ns):
if ns.huntrleaks:
unittest.BaseTestSuite._cleanup = False
+ sys._deactivate_opcache()
if ns.memlimit is not None:
support.set_memlimit(ns.memlimit)