diff options
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index f3c2a5f..fdcaf88 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -880,6 +880,10 @@ def runtest_inner(test, verbose, quiet, testdir=None, huntrleaks=False, debug=False): support.unload(test) testdir = findtestdir(testdir) + if verbose: + capture_stdout = None + else: + capture_stdout = io.StringIO() test_time = 0.0 refleak = False # True if the test leaked references. |