| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 57769f1 commit dd5e2b6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -147,7 +147,7 @@ def foo(self): | |||
| 147 | 147 | except: | |
| 148 | 148 | e = sys.exc_info() | |
| 149 | 149 | assert "xyzname" in str(e[1]) | |
| 150 | - location = traceback.extract_tb(e[2], -1)[0] | ||
| 150 | + location = traceback.extract_tb(e[2])[-1] | ||
| 151 | 151 | assert location[2] == "foo" | |
| 152 | 152 | ||
| 153 | 153 | # call through managed code | |
@@ -157,7 +157,7 @@ def foo(self): | |||
| 157 | 157 | except: | |
| 158 | 158 | e = sys.exc_info() | |
| 159 | 159 | assert "xyzname" in str(e[1]) | |
| 160 | - location = traceback.extract_tb(e[2], -1)[0] | ||
| 160 | + location = traceback.extract_tb(e[2])[-1] | ||
| 161 | 161 | assert location[2] == "foo" | |
| 162 | 162 | ||
| 163 | 163 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments