diff options
author | Damien George <damien.p.george@gmail.com> | 2014-12-11 17:10:25 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-12-11 17:10:25 +0000 |
commit | 184182d14c4e31d22d019dc6caf56e99cc4ce255 (patch) | |
tree | 8b9a9ec7b5f1f3961cc320e0fd80c68211b79a8c | |
parent | 66a6caa3075ae29246cebaeed8bfe3b4ea5872cb (diff) | |
download | micropython-184182d14c4e31d22d019dc6caf56e99cc4ce255.tar.gz micropython-184182d14c4e31d22d019dc6caf56e99cc4ce255.zip |
tests: Fix print_exception test and re-enable it on Travis CI.
Issue was with uPy: on local machine with micropython-lib installed, io
module is available. Not the case on Travis CI, where only _io module
is available in uPy.
-rw-r--r-- | tests/misc/print_exception.py | 2 | ||||
-rwxr-xr-x | tests/run-tests | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/misc/print_exception.py b/tests/misc/print_exception.py index 8ca63a000b..ba99ed48ba 100644 --- a/tests/misc/print_exception.py +++ b/tests/misc/print_exception.py @@ -1,4 +1,4 @@ -import io +import _io as io # uPy does not have io module builtin import sys if hasattr(sys, 'print_exception'): print_exception = sys.print_exception diff --git a/tests/run-tests b/tests/run-tests index 801fb897c6..fd41931d35 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -60,7 +60,6 @@ def run_tests(pyb, tests, args): # Some tests shouldn't be run under Travis CI if os.getenv('TRAVIS') == 'true': skip_tests.add('basics/memoryerror.py') - skip_tests.add('misc/print_exception.py') # Some tests shouldn't be run on pyboard if pyb is not None: |