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

Performance: do not reload tempfile #1076

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

mrbean-bremen
Copy link
Member

@mrbean-bremen mrbean-bremen commented Oct 13, 2024

  • patch tempfile instead directly (Posix only)

Reload takes between 0.5 and 1 ms, which is a substantial part of the test setup, as no caching can be done here.
This made the setup under Posix slower than under Windows.

Tasks

  • Fix or feature added
  • Entry to release notes added
  • Pre-commit CI shows no errors
  • Unit tests passing

- patch tempfile instead directly (Posix only)
- decrease allowed time for performance tests
@mrbean-bremen mrbean-bremen merged commit 6f04a45 into pytest-dev:main Oct 13, 2024
67 checks passed
@mrbean-bremen mrbean-bremen deleted the no_tempfile_reload1 branch October 13, 2024 14:23
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.

1 participant