]> granicus.if.org Git - python/commitdiff
regrtest's -g option stopped working, during the changes to improve
authorTim Peters <tim.peters@gmail.com>
Fri, 28 Sep 2001 20:14:46 +0000 (20:14 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 28 Sep 2001 20:14:46 +0000 (20:14 +0000)
 error-reporting for the classic compare-expected-output tests.
Curiously, the bug consisted of not simplifying the logic enough!

Lib/test/regrtest.py

index 1d1273985cad5702fd316b65f6332c00c62a2a33..7b2985420d805e03502776456f4e4090af666417 100755 (executable)
@@ -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()