commit | af5fa13ef6f648fc7a7a33a7556db13887e7d643 | [log] [tgz] |
---|---|---|
author | Pablo Galindo <Pablogsal@gmail.com> | Sun Feb 28 22:41:09 2021 +0000 |
committer | GitHub <noreply@github.com> | Sun Feb 28 22:41:09 2021 +0000 |
tree | faa0ffb9e99a6ae822b9c464a7cb044a8dc8e94f | |
parent | e8f5ddd33e44dae4e0121f87a7bf92d754807e49 [diff] [blame] |
bpo-37146: Deactivate opcode cache only when using huntrleaks in the test suite (GH-24643)
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)