Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with pytest 7.2 #106

Merged
merged 1 commit into from Oct 26, 2022

Commits on Oct 26, 2022

  1. Fix compatibility with pytest 7.2

    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.
    The-Compiler committed Oct 26, 2022
    Copy the full SHA
    9952fbf View commit details
    Browse the repository at this point in the history