Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
751e3795
Commit
751e3795
authored
Jan 16, 2017
by
Rami Ali
Committed by
Damien George
Jan 16, 2017
Browse files
Options
Downloads
Patches
Plain Diff
tests: Improve frozen import test coverage.
parent
d23834bc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/unix/extra_coverage.py
+6
-0
6 additions, 0 deletions
tests/unix/extra_coverage.py
tests/unix/extra_coverage.py.exp
+1
-0
1 addition, 0 deletions
tests/unix/extra_coverage.py.exp
unix/coverage-frzmpy/frzmpy2.py
+1
-0
1 addition, 0 deletions
unix/coverage-frzmpy/frzmpy2.py
with
8 additions
and
0 deletions
tests/unix/extra_coverage.py
+
6
−
0
View file @
751e3795
...
@@ -60,3 +60,9 @@ from frzstr_pkg2.mod import Foo
...
@@ -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
'
)
This diff is collapsed.
Click to expand it.
tests/unix/extra_coverage.py.exp
+
1
−
0
View file @
751e3795
...
@@ -71,3 +71,4 @@ frzstr_pkg2.mod
...
@@ -71,3 +71,4 @@ frzstr_pkg2.mod
1
1
frzmpy_pkg2.mod
frzmpy_pkg2.mod
1
1
ZeroDivisionError
This diff is collapsed.
Click to expand it.
unix/coverage-frzmpy/frzmpy2.py
0 → 100644
+
1
−
0
View file @
751e3795
raise
ZeroDivisionError
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment