summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-23 14:10:03 +0000
committerDamien George <damien.p.george@gmail.com>2014-09-23 14:15:45 +0000
commitd6230f62c785c6c1ef1797500617c33e24607980 (patch)
treedf12c1f20b9c22de5b25224c4bbd4e1e89cac871 /tests
parent96e20c600f6498c403445956077f85dd2fb548aa (diff)
py: Make native emitter handle multi-compare and not/is not/not in ops.
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/containment.py4
-rwxr-xr-xtests/run-tests3
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/basics/containment.py b/tests/basics/containment.py
index 84d40b4e8..f8be04e92 100644
--- a/tests/basics/containment.py
+++ b/tests/basics/containment.py
@@ -4,12 +4,12 @@ for i in 1, 2:
print("{} not in {}: {}".format(i, o, i not in o))
haystack = "supercalifragilistc"
-for needle in (haystack[i:] for i in range(len(haystack))):
+for needle in [haystack[i:] for i in range(len(haystack))]:
print(needle, "in", haystack, "::", needle in haystack)
print(needle, "not in", haystack, "::", needle not in haystack)
print(haystack, "in", needle, "::", haystack in needle)
print(haystack, "not in", needle, "::", haystack not in needle)
-for needle in (haystack[:i+1] for i in range(len(haystack))):
+for needle in [haystack[:i+1] for i in range(len(haystack))]:
print(needle, "in", haystack, "::", needle in haystack)
print(needle, "not in", haystack, "::", needle not in haystack)
print(haystack, "in", needle, "::", haystack in needle)
diff --git a/tests/run-tests b/tests/run-tests
index ff2c418ea..6d5752e68 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -45,10 +45,9 @@ def run_tests(pyb, tests, args):
# Some tests are known to fail with native emitter
# Remove them from the below when they work
if args.emit == 'native':
- skip_tests.update({'basics/%s.py' % t for t in 'bytes_gen class_store_class class_super class_super_object closure1 closure2 closure_defargs compare_multi containment del_deref del_local fun3 fun_calldblstar fun_callstar fun_callstardblstar fun_defargs fun_defargs2 fun_kwargs fun_kwonly fun_kwonlydef fun_kwvarargs fun_varargs gen_yield_from gen_yield_from_close gen_yield_from_ducktype gen_yield_from_exc gen_yield_from_iter gen_yield_from_send gen_yield_from_throw generator1 generator2 generator_args generator_close generator_closure generator_exc generator_return generator_send globals_del is_isnot string_format string_join subclass_native2_list subclass_native2_tuple try2 try_finally1 try_finally_loops try_finally_return try_reraise try_reraise2 unary_op unboundlocal with1 with_break with_continue with_return'.split()})
+ skip_tests.update({'basics/%s.py' % t for t in 'bytes_gen class_store_class class_super class_super_object closure1 closure2 closure_defargs del_deref del_local fun3 fun_calldblstar fun_callstar fun_callstardblstar fun_defargs fun_defargs2 fun_kwargs fun_kwonly fun_kwonlydef fun_kwvarargs fun_varargs gen_yield_from gen_yield_from_close gen_yield_from_ducktype gen_yield_from_exc gen_yield_from_iter gen_yield_from_send gen_yield_from_throw generator1 generator2 generator_args generator_close generator_closure generator_exc generator_return generator_send globals_del string_format string_join subclass_native2_list subclass_native2_tuple try2 try_finally1 try_finally_loops try_finally_return try_reraise try_reraise2 unboundlocal with1 with_break with_continue with_return'.split()})
skip_tests.add('float/string_format.py')
skip_tests.add('import/gen_context.py')
- skip_tests.add('import/import_pkg1.py')
skip_tests.add('io/file_with.py')
skip_tests.add('micropython/heapalloc.py')
skip_tests.add('misc/features.py')