commit | 1c92eba2dd586c6448e2f155554b0d5d8c964883 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Thu Dec 12 22:21:10 1996 +0000 |
committer | Barry Warsaw <barry@python.org> | Thu Dec 12 22:21:10 1996 +0000 |
tree | 067fcb68a822cada8dfc75dd07f3535c9315f5df | |
parent | c1cb360683734461eff3173dbef012124bc52be4 [diff] [blame] |
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 aadd170..0506fa2 100644 --- a/Lib/test/autotest.py +++ b/Lib/test/autotest.py
@@ -93,7 +93,11 @@ 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