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

More py.path removal work #8446

Merged
merged 3 commits into from
Mar 18, 2021
Merged

Conversation

bluetech
Copy link
Member

The first commit adds cache.mkdir, a replacement for the py.path-returning cache.makedir.

Second commit makes collect_ignore agnostic to py.path.

Third commits are some random replacements of py.path uses with the pathlib equivalents.

def pytest_collect_file(parent, path):
if path.ext == ".yaml" and path.basename.startswith("test"):
return YamlFile.from_parent(parent, fspath=path)
def pytest_collect_file(parent, fspath):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seeing this reminds me - adding those parameters is a breaking changes for externals that use those,

i believe it adds errors on some plugins, please see #8361

@RonnyPfannschmidt
Copy link
Member

doc failure unrelated

…akedir()

It is not possible to change a return type in a compatible way, so a new
method is added.
The main reason is to remove a reference to `py.path`.
@bluetech
Copy link
Member Author

The coverage will bounce back after the planned revert mentioned in #8361 (comment).

@bluetech bluetech merged commit fe215bd into pytest-dev:main Mar 18, 2021
@bluetech bluetech deleted the unnecessary-py-path-2 branch March 22, 2021 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants