diff options
author | Damien George <damien.p.george@gmail.com> | 2015-10-02 13:01:47 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-10-02 13:01:47 +0100 |
commit | 34f26ea862d18c61a66f36f44277bb954bf36cd1 (patch) | |
tree | 12b20d3fd619dfb564ee5f1c347e30a646ea4e1a /tests/misc | |
parent | 9e0a3d46b6eb176a3450d565c9e172eb22f9c8dc (diff) | |
download | micropython-34f26ea862d18c61a66f36f44277bb954bf36cd1.tar.gz micropython-34f26ea862d18c61a66f36f44277bb954bf36cd1.zip |
tests: Allow tests to pass against CPython 3.5.
All breaking changes going from 3.4 to 3.5 are contained in
basics/python34.py.
Diffstat (limited to 'tests/misc')
-rw-r--r-- | tests/misc/print_exception.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/print_exception.py b/tests/misc/print_exception.py index 4e23bf1543..92c9794e88 100644 --- a/tests/misc/print_exception.py +++ b/tests/misc/print_exception.py @@ -4,7 +4,7 @@ if hasattr(sys, 'print_exception'): print_exception = sys.print_exception else: import traceback - print_exception = lambda e, f: traceback.print_exception(None, e, None, file=f) + print_exception = lambda e, f: traceback.print_exception(None, e, sys.exc_info()[2], file=f) def print_exc(e): buf = io.StringIO() |