summaryrefslogtreecommitdiff
path: root/Lib/test/autotest.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-12-12 22:21:10 +0000
committerBarry Warsaw <barry@python.org>1996-12-12 22:21:10 +0000
commit1c92eba2dd586c6448e2f155554b0d5d8c964883 (patch)
tree067fcb68a822cada8dfc75dd07f3535c9315f5df /Lib/test/autotest.py
parentc1cb360683734461eff3173dbef012124bc52be4 (diff)
downloadcpython-git-1c92eba2dd586c6448e2f155554b0d5d8c964883.tar.gz
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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/autotest.py b/Lib/test/autotest.py
index aadd1702ff..0506fa2fd3 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