Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add traceback information to exception #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 14, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix python 2.x issues
  • Loading branch information
testrunner123 authored and filmor committed Nov 14, 2018
commit dd5e2b696b4cbbe588128be5de099abf758eb4c5
4 changes: 2 additions & 2 deletions src/tests/test_subclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def foo(self):
except:
e = sys.exc_info()
assert "xyzname" in str(e[1])
location = traceback.extract_tb(e[2], -1)[0]
location = traceback.extract_tb(e[2])[-1]
assert location[2] == "foo"

# call through managed code
Expand All @@ -157,7 +157,7 @@ def foo(self):
except:
e = sys.exc_info()
assert "xyzname" in str(e[1])
location = traceback.extract_tb(e[2], -1)[0]
location = traceback.extract_tb(e[2])[-1]
assert location[2] == "foo"


Expand Down