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

Handle skipped pathlib.Path.open calls #1015

Merged
merged 1 commit into from
May 12, 2024

Conversation

mrbean-bremen
Copy link
Member

@mrbean-bremen mrbean-bremen commented May 11, 2024

I'm not too happy about the skip module handling, may revisit this later.

Describe the changes

The related issue or a description of the bug or feature that this PR addresses.

Tasks

  • Unit tests added that reproduce the issue or prove feature is working
  • Fix or feature added
  • Entry to release notes added
  • Pre-commit CI shows no errors
  • Unit tests passing

- if a module is skipped using additional_skip_names,
  Path.open is now handled the same way as io.open
  to use real fs calls
@mrbean-bremen mrbean-bremen merged commit 68ed3b9 into pytest-dev:main May 12, 2024
64 checks passed
@mrbean-bremen mrbean-bremen deleted the skip_open branch May 12, 2024 05:51
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.

additional_skip_names is ignored for Path().open
1 participant