Skip to content
Snippets Groups Projects
Commit 184182d1 authored by Damien George's avatar Damien George
Browse files

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.
parent 66a6caa3
No related branches found
No related tags found
No related merge requests found
import io import _io as io # uPy does not have io module builtin
import sys import sys
if hasattr(sys, 'print_exception'): if hasattr(sys, 'print_exception'):
print_exception = sys.print_exception print_exception = sys.print_exception
......
...@@ -60,7 +60,6 @@ def run_tests(pyb, tests, args): ...@@ -60,7 +60,6 @@ def run_tests(pyb, tests, args):
# Some tests shouldn't be run under Travis CI # Some tests shouldn't be run under Travis CI
if os.getenv('TRAVIS') == 'true': if os.getenv('TRAVIS') == 'true':
skip_tests.add('basics/memoryerror.py') skip_tests.add('basics/memoryerror.py')
skip_tests.add('misc/print_exception.py')
# Some tests shouldn't be run on pyboard # Some tests shouldn't be run on pyboard
if pyb is not None: if pyb is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment