Skip to content

Commit

Permalink
Merge "sys.exc_type/exc_value/exc_traceback are Deprecated"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Aug 3, 2015
2 parents a5af24d + c8131c6 commit 5a04412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/common/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4232,7 +4232,7 @@ def alpha():
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")

Expand Down

0 comments on commit 5a04412

Please sign in to comment.