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.
This commit is contained in:
Damien George
2014-12-11 17:10:25 +00:00
parent 66a6caa307
commit 184182d14c
2 changed files with 1 additions and 2 deletions

View File

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