Commit 91346e6
committed
Fix compatibility with pytest 3.8.1
Apparently for a test *method*, item.obj and item.function are
different: item.obj is the bound method, and item.function is the
underlying unbound method. At least in pytest 3.8.1.
We want to wrap the bound method, not the unbound method, so we should
wrap item.obj, not item.function.1 parent 6706f8b commit 91346e6
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
0 commit comments