Merge "sys.exc_type/exc_value/exc_traceback are Deprecated"
This commit is contained in:
commit
5a04412ad2
@ -4232,7 +4232,7 @@ class TestThreadPool(unittest.TestCase):
|
|||||||
except ZeroDivisionError:
|
except ZeroDivisionError:
|
||||||
# NB: format is (filename, line number, function name, text)
|
# NB: format is (filename, line number, function name, text)
|
||||||
tb_func = [elem[2] for elem
|
tb_func = [elem[2] for elem
|
||||||
in traceback.extract_tb(sys.exc_traceback)]
|
in traceback.extract_tb(sys.exc_info()[2])]
|
||||||
else:
|
else:
|
||||||
self.fail("Expected ZeroDivisionError")
|
self.fail("Expected ZeroDivisionError")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user