Commit 56cf014
committed
Bail out of stack traversal when hitting unittest files
As at the status quo, stack traversal terminates when
hitting a file with 'pytest' or 'hammett' in the path,
but blithely carries on if a file has 'unittest' in
the path, despite that being the unittest framework.
The simple fix to that is to also bail out if
'unittest' is in the current frame's filename.1 parent 0232420 commit 56cf014
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
0 commit comments