diff options
author | Rami Ali <flowergrass@users.noreply.github.com> | 2017-01-16 16:47:02 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-16 16:59:03 +1100 |
commit | 751e379533172b9bfb0863643d2829446258f9cc (patch) | |
tree | 4ec9411cb1ccd577bc239bbcb5966c4a78959f15 /tests/unix/extra_coverage.py | |
parent | d23834bc967126db5057ca1fa49e7768852e6a46 (diff) | |
download | micropython-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.py | 6 |
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') |