tests: Improve frozen import test coverage.

This commit is contained in:
Rami Ali 2017-01-16 16:47:02 +11:00 committed by Damien George
parent d23834bc96
commit 751e379533
3 changed files with 8 additions and 0 deletions

View File

@ -60,3 +60,9 @@ from frzstr_pkg2.mod import Foo
print(Foo.x)
from frzmpy_pkg2.mod import Foo
print(Foo.x)
# test raising exception in frozen script
try:
import frzmpy2
except ZeroDivisionError:
print('ZeroDivisionError')

View File

@ -71,3 +71,4 @@ frzstr_pkg2.mod
1
frzmpy_pkg2.mod
1
ZeroDivisionError

View File

@ -0,0 +1 @@
raise ZeroDivisionError