tests: Fix print_exception.py to work on Travis CI.
This commit is contained in:
parent
e8487ea1be
commit
4140e19c8a
|
@ -7,7 +7,7 @@ else:
|
|||
print_exception = lambda e, f: traceback.print_exception(None, e, None, file=f)
|
||||
|
||||
try:
|
||||
1/0
|
||||
XXX
|
||||
except Exception as e:
|
||||
print('caught')
|
||||
buf = io.StringIO()
|
||||
|
|
Loading…
Reference in New Issue