From 34f26ea862d18c61a66f36f44277bb954bf36cd1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 2 Oct 2015 13:01:47 +0100 Subject: 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. --- tests/misc/print_exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/misc/print_exception.py') diff --git a/tests/misc/print_exception.py b/tests/misc/print_exception.py index 4e23bf154..92c9794e8 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() -- cgit v1.2.3