Issue #11798: fix tests for regrtest -R :

This commit is contained in:
Andrew Svetlov 2013-09-01 07:58:41 +03:00
parent 59360aadd3
commit 8913a6c83d
3 changed files with 19 additions and 2 deletions

View file

@ -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: