diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2013-09-01 04:58:41 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2013-09-01 04:58:41 (GMT) |
commit | 8913a6c83dd34300f4a13950036b01c0e2cad1b0 (patch) | |
tree | 3accedf450c81d822efb09c3ef32c0d406d3ebd1 /Lib/test/regrtest.py | |
parent | 59360aadd31f9bdd4e018ad8acb8f06ece5423a6 (diff) | |
download | cpython-8913a6c83dd34300f4a13950036b01c0e2cad1b0.zip cpython-8913a6c83dd34300f4a13950036b01c0e2cad1b0.tar.gz cpython-8913a6c83dd34300f4a13950036b01c0e2cad1b0.tar.bz2 |
Issue #11798: fix tests for regrtest -R :
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 03f168e..1f734c4 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -496,6 +496,8 @@ def main(tests=None, **kwargs): if ns.slaveargs is not None: args, kwargs = json.loads(ns.slaveargs) + if kwargs.get('huntrleaks'): + unittest.BaseTestSuite._cleanup = False try: result = runtest(*args, **kwargs) except KeyboardInterrupt: @@ -528,6 +530,9 @@ def main(tests=None, **kwargs): #gc.set_debug(gc.DEBUG_SAVEALL) found_garbage = [] + if ns.huntrleaks: + unittest.BaseTestSuite._cleanup = False + if ns.single: filename = os.path.join(TEMPDIR, 'pynexttest') try: |