From: Tim Peters Date: Fri, 28 Sep 2001 20:14:46 +0000 (+0000) Subject: regrtest's -g option stopped working, during the changes to improve X-Git-Tag: v2.2.1c1~1556 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9390cc15da5cd6920bd41bb4cd146d5d0601345f;p=thirdparty%2FPython%2Fcpython.git regrtest's -g option stopped working, during the changes to improve error-reporting for the classic compare-expected-output tests. Curiously, the bug consisted of not simplifying the logic enough! --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 1d1273985cad..7b2985420d80 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -283,7 +283,7 @@ def runtest(test, generate, verbose, quiet, testdir = None): if not testdir: testdir = findtestdir() outputdir = os.path.join(testdir, "output") outputfile = os.path.join(outputdir, test) - if verbose or generate: + if verbose: cfp = None else: cfp = StringIO.StringIO()