diff options
author | Barry Warsaw <barry@python.org> | 1996-12-12 22:21:10 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1996-12-12 22:21:10 (GMT) |
commit | 1c92eba2dd586c6448e2f155554b0d5d8c964883 (patch) | |
tree | 067fcb68a822cada8dfc75dd07f3535c9315f5df /Lib/test/autotest.py | |
parent | c1cb360683734461eff3173dbef012124bc52be4 (diff) | |
download | cpython-1c92eba2dd586c6448e2f155554b0d5d8c964883.zip cpython-1c92eba2dd586c6448e2f155554b0d5d8c964883.tar.gz cpython-1c92eba2dd586c6448e2f155554b0d5d8c964883.tar.bz2 |
Print a more meaningful message when a test's output file wasn't
found.
Diffstat (limited to 'Lib/test/autotest.py')
-rw-r--r-- | Lib/test/autotest.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |