From c8131c6abb17b00b043a9b95e65be819e1fd3c9d Mon Sep 17 00:00:00 2001 From: janonymous Date: Sun, 12 Jul 2015 14:48:35 +0530 Subject: [PATCH] sys.exc_type/exc_value/exc_traceback are Deprecated sys.exc_info() contains a tuple of these three. Change-Id: I530cbeb37c43da98b4924db41f6604871077bd47 --- test/unit/common/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/common/test_utils.py b/test/unit/common/test_utils.py index be98ed8cfb..3a927140ea 100644 --- a/test/unit/common/test_utils.py +++ b/test/unit/common/test_utils.py @@ -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")