summaryrefslogtreecommitdiffstatshomepage
path: root/tests/unix/extra_coverage.py
diff options
context:
space:
mode:
authorRami Ali <flowergrass@users.noreply.github.com>2017-01-16 16:47:02 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-16 16:59:03 +1100
commit751e379533172b9bfb0863643d2829446258f9cc (patch)
tree4ec9411cb1ccd577bc239bbcb5966c4a78959f15 /tests/unix/extra_coverage.py
parentd23834bc967126db5057ca1fa49e7768852e6a46 (diff)
downloadmicropython-751e379533172b9bfb0863643d2829446258f9cc.tar.gz
micropython-751e379533172b9bfb0863643d2829446258f9cc.zip
tests: Improve frozen import test coverage.
Diffstat (limited to 'tests/unix/extra_coverage.py')
-rw-r--r--tests/unix/extra_coverage.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unix/extra_coverage.py b/tests/unix/extra_coverage.py
index ef1b50fda0..1c4cc6cf04 100644
--- a/tests/unix/extra_coverage.py
+++ b/tests/unix/extra_coverage.py
@@ -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')