From 1c92eba2dd586c6448e2f155554b0d5d8c964883 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 12 Dec 1996 22:21:10 +0000 Subject: Print a more meaningful message when a test's output file wasn't found. --- Lib/test/autotest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/autotest.py b/Lib/test/autotest.py index aadd170..0506fa2 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 -- cgit v0.12