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.
pull/1005/head
Damien George 2014-12-11 17:10:25 +00:00
rodzic 66a6caa307
commit 184182d14c
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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: