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
5cc9517f
Commit
5cc9517f
authored
Oct 1, 2018
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
tests/run-tests: Enabled native tests that pass now that yield works.
parent
cc2bd63c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/run-tests
+2
-12
2 additions, 12 deletions
tests/run-tests
with
2 additions
and
12 deletions
tests/run-tests
+
2
−
12
View file @
5cc9517f
...
@@ -352,30 +352,20 @@ def run_tests(pyb, tests, args, base_path="."):
...
@@ -352,30 +352,20 @@ def run_tests(pyb, tests, args, base_path="."):
# Some tests are known to fail with native emitter
# Some tests are known to fail with native emitter
# Remove them from the below when they work
# Remove them from the below when they work
if
args
.
emit
==
'
native
'
:
if
args
.
emit
==
'
native
'
:
skip_tests
.
update
({
'
basics/%s.py
'
%
t
for
t
in
'
gen_yield_from gen_yield_from_close gen_yield_from_ducktype gen_yield_from_exc gen_yield_from_executing gen_yield_from_iter gen_yield_from_send gen_yield_from_stopped gen_yield_from_throw gen_yield_from_throw2 gen_yield_from_throw3 generator1 generator2 generator_args generator_close generator_closure generator_exc generator_name generator_pend_throw generator_return generator_send generator_throw generator_pep479
'
.
split
()})
# require yield
skip_tests
.
update
({
'
basics/%s.py
'
%
t
for
t
in
'
gen_yield_from_close generator_name
'
.
split
()})
# require raise_varargs, generator name
skip_tests
.
update
({
'
basics/%s.py
'
%
t
for
t
in
'
bytes_gen class_store_class globals_del string_join
'
.
split
()})
# require yield
skip_tests
.
update
({
'
basics/async_%s.py
'
%
t
for
t
in
'
with with2 with_break with_return
'
.
split
()})
# require async_with
skip_tests
.
update
({
'
basics/async_%s.py
'
%
t
for
t
in
'
def await await2 for for2 with with2 with_break with_return
'
.
split
()})
# require yield
skip_tests
.
update
({
'
basics/%s.py
'
%
t
for
t
in
'
try_reraise try_reraise2
'
.
split
()})
# require raise_varargs
skip_tests
.
update
({
'
basics/%s.py
'
%
t
for
t
in
'
try_reraise try_reraise2
'
.
split
()})
# require raise_varargs
skip_tests
.
add
(
'
basics/array_construct2.py
'
)
# requires generators
skip_tests
.
add
(
'
basics/builtin_hash_gen.py
'
)
# requires yield
skip_tests
.
add
(
'
basics/class_bind_self.py
'
)
# requires yield
skip_tests
.
add
(
'
basics/del_deref.py
'
)
# requires checking for unbound local
skip_tests
.
add
(
'
basics/del_deref.py
'
)
# requires checking for unbound local
skip_tests
.
add
(
'
basics/del_local.py
'
)
# requires checking for unbound local
skip_tests
.
add
(
'
basics/del_local.py
'
)
# requires checking for unbound local
skip_tests
.
add
(
'
basics/exception_chain.py
'
)
# raise from is not supported
skip_tests
.
add
(
'
basics/exception_chain.py
'
)
# raise from is not supported
skip_tests
.
add
(
'
basics/for_range.py
'
)
# requires yield_value
skip_tests
.
add
(
'
basics/try_finally_return2.py
'
)
# requires raise_varargs
skip_tests
.
add
(
'
basics/try_finally_return2.py
'
)
# requires raise_varargs
skip_tests
.
add
(
'
basics/unboundlocal.py
'
)
# requires checking for unbound local
skip_tests
.
add
(
'
basics/unboundlocal.py
'
)
# requires checking for unbound local
skip_tests
.
add
(
'
import/gen_context.py
'
)
# requires yield_value
skip_tests
.
add
(
'
misc/features.py
'
)
# requires raise_varargs
skip_tests
.
add
(
'
misc/features.py
'
)
# requires raise_varargs
skip_tests
.
add
(
'
misc/rge_sm.py
'
)
# requires yield
skip_tests
.
add
(
'
misc/print_exception.py
'
)
# because native doesn't have proper traceback info
skip_tests
.
add
(
'
misc/print_exception.py
'
)
# because native doesn't have proper traceback info
skip_tests
.
add
(
'
misc/sys_exc_info.py
'
)
# sys.exc_info() is not supported for native
skip_tests
.
add
(
'
misc/sys_exc_info.py
'
)
# sys.exc_info() is not supported for native
skip_tests
.
add
(
'
micropython/emg_exc.py
'
)
# because native doesn't have proper traceback info
skip_tests
.
add
(
'
micropython/emg_exc.py
'
)
# because native doesn't have proper traceback info
skip_tests
.
add
(
'
micropython/heapalloc_traceback.py
'
)
# because native doesn't have proper traceback info
skip_tests
.
add
(
'
micropython/heapalloc_traceback.py
'
)
# because native doesn't have proper traceback info
skip_tests
.
add
(
'
micropython/heapalloc_iter.py
'
)
# requires generators
skip_tests
.
add
(
'
micropython/schedule.py
'
)
# native code doesn't check pending events
skip_tests
.
add
(
'
micropython/schedule.py
'
)
# native code doesn't check pending events
skip_tests
.
add
(
'
stress/gc_trace.py
'
)
# requires yield
skip_tests
.
add
(
'
stress/recursive_gen.py
'
)
# requires yield
for
test_file
in
tests
:
for
test_file
in
tests
:
test_file
=
test_file
.
replace
(
'
\\
'
,
'
/
'
)
test_file
=
test_file
.
replace
(
'
\\
'
,
'
/
'
)
...
...
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