From: Barry Warsaw Date: Thu, 12 Dec 1996 22:21:10 +0000 (+0000) Subject: Print a more meaningful message when a test's output file wasn't X-Git-Tag: v1.5a1~775 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c92eba2dd586c6448e2f155554b0d5d8c964883;p=thirdparty%2FPython%2Fcpython.git Print a more meaningful message when a test's output file wasn't found. --- diff --git a/Lib/test/autotest.py b/Lib/test/autotest.py index aadd1702ff65..0506fa2fd370 100644 --- a/Lib/test/autotest.py +++ b/Lib/test/autotest.py @@ -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