From 23d7fd526d631290e8cab85acb50cde3c05c0cec Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 25 Mar 2015 23:33:48 +0000 Subject: [PATCH] tests: Skip some new tests when testing native emitter. --- tests/basics/array_construct.py | 3 --- tests/basics/array_construct2.py | 4 ++++ tests/run-tests | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 tests/basics/array_construct2.py diff --git a/tests/basics/array_construct.py b/tests/basics/array_construct.py index 47c986c940..8c0b4b5973 100644 --- a/tests/basics/array_construct.py +++ b/tests/basics/array_construct.py @@ -14,6 +14,3 @@ print(array('i', bytearray(4))) # convert from other arrays print(array('H', array('b', [1, 2]))) print(array('b', array('I', [1, 2]))) - -# construct from something with unknown length -print(array('i', (i for i in range(10)))) diff --git a/tests/basics/array_construct2.py b/tests/basics/array_construct2.py new file mode 100644 index 0000000000..0013a0aa74 --- /dev/null +++ b/tests/basics/array_construct2.py @@ -0,0 +1,4 @@ +from array import array + +# construct from something with unknown length (requires generators) +print(array('i', (i for i in range(10)))) diff --git a/tests/run-tests b/tests/run-tests index 606cd61e6e..3a286a244b 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -154,7 +154,10 @@ def run_tests(pyb, tests, args): # 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 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 try_finally_loops try_finally_return try_reraise try_reraise2 unboundlocal with1 with_break with_continue with_return'.split()}) + skip_tests.add('basics/array_construct2.py') # requires generators + skip_tests.add('basics/bool1.py') # seems to randomly fail skip_tests.add('basics/boundmeth1.py') # requires support for many args + skip_tests.add('basics/closure_manyvars.py') # requires closures skip_tests.add('float/string_format.py') skip_tests.add('float/cmath_fun.py') # requires f(*args) support skip_tests.add('import/gen_context.py')