mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Print a more meaningful message when a test's output file wasn't
found.
This commit is contained in:
parent
c1cb360683
commit
1c92eba2dd
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue