Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57769f1 commit dd5e2b6Copy full SHA for dd5e2b6
src/tests/test_subclass.py
@@ -147,7 +147,7 @@ def foo(self):
147
except:
148
e = sys.exc_info()
149
assert "xyzname" in str(e[1])
150
- location = traceback.extract_tb(e[2], -1)[0]
+ location = traceback.extract_tb(e[2])[-1]
151
assert location[2] == "foo"
152
153
# call through managed code
@@ -157,7 +157,7 @@ def foo(self):
157
158
159
160
161
162
163
0 commit comments