]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Print a more meaningful message when a test's output file wasn't
authorBarry Warsaw <barry@python.org>
Thu, 12 Dec 1996 22:21:10 +0000 (22:21 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 12 Dec 1996 22:21:10 +0000 (22:21 +0000)
found.

Lib/test/autotest.py

index aadd1702ff6562c08bdc3c51d74ef0b1854f261f..0506fa2fd370bd1639adb75bc1db42891463fd68 100644 (file)
@@ -93,7 +93,11 @@ def do_one_test(t, outdir):
                print 'Generating:', filename
                fake_stdout = open(filename, 'w')
        else:
-               fake_stdout = Compare(filename)
+               try:
+                       fake_stdout = Compare(filename)
+               except IOError:
+                       print 'Could not find output file for test:', t
+                       return
        try:
                sys.stdout = fake_stdout
                print t