Merge "sys.exc_type/exc_value/exc_traceback are Deprecated"

This commit is contained in:
Jenkins 2015-08-03 14:54:52 +00:00 committed by Gerrit Code Review
commit 5a04412ad2

View File

@ -4232,7 +4232,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")