mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #11798: fix tests for regrtest -R :
This commit is contained in:
parent
59360aadd3
commit
8913a6c83d
3 changed files with 19 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue