tests: Improve frozen import test coverage.

crypto-aes
Rami Ali 6 years ago committed by Damien George
parent d23834bc96
commit 751e379533

@ -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')

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

@ -0,0 +1 @@
raise ZeroDivisionError
Loading…
Cancel
Save