sys.exc_type/exc_value/exc_traceback are Deprecated
sys.exc_info() contains a tuple of these three. Change-Id: I530cbeb37c43da98b4924db41f6604871077bd47
This commit is contained in:
parent
2f9053b628
commit
c8131c6abb
@ -4228,7 +4228,7 @@ class TestThreadPool(unittest.TestCase):
|
||||
except ZeroDivisionError:
|
||||
# NB: format is (filename, line number, function name, text)
|
||||
tb_func = [elem[2] for elem
|
||||
in traceback.extract_tb(sys.exc_traceback)]
|
||||
in traceback.extract_tb(sys.exc_info()[2])]
|
||||
else:
|
||||
self.fail("Expected ZeroDivisionError")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user