Commit e212be4
authored
Fix compatibility with pytest 7.2 (#106)
With pytest 7.2, the remaining parts of the "py.path" library got vendored, to
get rid of the dependency: pytest-dev/pytest#10396
However, this breaks due to pytest_mypy_plugins importing private API:
File ".../pytest_mypy_plugins/collect.py", line 13, in <module>
from py._path.local import LocalPath
ModuleNotFoundError: No module named 'py._path'; 'py' is not a package
Use py.path.local instead (the public name of the same type), which is part of
the shim included in pytest.1 parent 19de6e5 commit e212be4
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments