tests: Improve frozen import test coverage.
This commit is contained in:
parent
d23834bc96
commit
751e379533
@ -60,3 +60,9 @@ from frzstr_pkg2.mod import Foo
|
|||||||
print(Foo.x)
|
print(Foo.x)
|
||||||
from frzmpy_pkg2.mod import Foo
|
from frzmpy_pkg2.mod import Foo
|
||||||
print(Foo.x)
|
print(Foo.x)
|
||||||
|
|
||||||
|
# test raising exception in frozen script
|
||||||
|
try:
|
||||||
|
import frzmpy2
|
||||||
|
except ZeroDivisionError:
|
||||||
|
print('ZeroDivisionError')
|
||||||
|
@ -71,3 +71,4 @@ frzstr_pkg2.mod
|
|||||||
1
|
1
|
||||||
frzmpy_pkg2.mod
|
frzmpy_pkg2.mod
|
||||||
1
|
1
|
||||||
|
ZeroDivisionError
|
||||||
|
1
unix/coverage-frzmpy/frzmpy2.py
Normal file
1
unix/coverage-frzmpy/frzmpy2.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
raise ZeroDivisionError
|
Loading…
Reference in New Issue
Block a user