Files
pyinstaller/buildtests/test_error_during_import.py
giovannibajo 6fcf6732c5 Add test for ticket #27 that is fixed on trunk by the work of Matteo Bertini on cleaning up
exception handling during imports.


git-svn-id: http://svn.pyinstaller.org/trunk@586 8dd32b29-ccff-0310-8a9a-9233e24343b1
2008-12-30 19:00:51 +00:00

9 lines
188 B
Python
Executable File

# See ticket #27: historically, PyInstaller was catching all errors during imports...
try:
import error_during_import2
except KeyError:
print "OK"
else:
raise RuntimeError("failure!")