diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-13 17:46:30 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-13 17:46:30 +0100 |
commit | 4417478d0fc39b69fda058e93730b3dc3fdb1ec9 (patch) | |
tree | 1f97730d4d91cb4480507ed4b75de1d00909950d | |
parent | 9dcc60d0b1241c2b6c2de7a8ca7b712655d05114 (diff) |
tests: Make tests pass on pyboard.
-rw-r--r-- | tests/basics/fun-callstar.py | 2 | ||||
-rw-r--r-- | tests/basics/fun-defargs.py | 2 | ||||
-rw-r--r-- | tests/basics/with1.py | 4 | ||||
-rwxr-xr-x | tests/run-tests | 2 |
4 files changed, 7 insertions, 3 deletions
diff --git a/tests/basics/fun-callstar.py b/tests/basics/fun-callstar.py index 255563b26..e19acb349 100644 --- a/tests/basics/fun-callstar.py +++ b/tests/basics/fun-callstar.py @@ -31,3 +31,5 @@ a.foo(1, 2, *[100]) # Iterator a.foo(*range(3)) + +print('flush') # so that it works on pyboard... diff --git a/tests/basics/fun-defargs.py b/tests/basics/fun-defargs.py index 0666b8c49..51516c736 100644 --- a/tests/basics/fun-defargs.py +++ b/tests/basics/fun-defargs.py @@ -18,3 +18,5 @@ try: fun2(1, 2, 3, 4) except TypeError: print("TypeError") + +print('flush') # so that it works on pyboard... diff --git a/tests/basics/with1.py b/tests/basics/with1.py index 3db1d380d..57a80709d 100644 --- a/tests/basics/with1.py +++ b/tests/basics/with1.py @@ -38,8 +38,8 @@ except ValueError: # These recursive try-finally tests are attempt to get some interpretation # of last phrase in http://docs.python.org/3.4/library/dis.html#opcode-WITH_CLEANUP -# "If the stack represents an exception, and the function call returns a ‘true’ -# value, this information is “zapped” and replaced with a single WHY_SILENCED +# "If the stack represents an exception, and the function call returns a 'true' +# value, this information is "zapped" and replaced with a single WHY_SILENCED # to prevent END_FINALLY from re-raising the exception. (But non-local gotos # will still be resumed.)" print("===") diff --git a/tests/run-tests b/tests/run-tests index 33409832b..554f5134c 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -49,7 +49,7 @@ for test_file in tests: if test_on_pyboard: pyb.enter_raw_repl() try: - if test_file == 'basics/math-fun.py': + if test_file == 'basics/memoryerror.py': # this test crashes the pyboard output_mupy = b'CRASH' else: |