Skip to content

Commit 184182d

Browse files
committed
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.
1 parent 66a6caa commit 184182d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

tests/misc/print_exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import io
1+
import _io as io # uPy does not have io module builtin
22
import sys
33
if hasattr(sys, 'print_exception'):
44
print_exception = sys.print_exception

tests/run-tests

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def run_tests(pyb, tests, args):
6060
# Some tests shouldn't be run under Travis CI
6161
if os.getenv('TRAVIS') == 'true':
6262
skip_tests.add('basics/memoryerror.py')
63-
skip_tests.add('misc/print_exception.py')
6463

6564
# Some tests shouldn't be run on pyboard
6665
if pyb is not None:

0 commit comments

Comments
 (0)