diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-02-28 22:41:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 22:41:09 (GMT) |
commit | af5fa13ef6f648fc7a7a33a7556db13887e7d643 (patch) | |
tree | faa0ffb9e99a6ae822b9c464a7cb044a8dc8e94f /Lib/test/libregrtest | |
parent | e8f5ddd33e44dae4e0121f87a7bf92d754807e49 (diff) | |
download | cpython-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.py | 1 |
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) |