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 pytest collection cache not being copied from #84

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

JamesHutchison
Copy link
Owner

@JamesHutchison JamesHutchison commented Jan 6, 2024

The pytest collection cache wasn't being copied from, resulting in the cached objects being inadvertently modified more than expected. This would manifest as strange errors when you ran something a third time or later, typically from fixture value reuse, and only on tests that had fixtures that were affected.

Deep copies cannot be created, so the cached objects are done using a best effort copy.

@JamesHutchison JamesHutchison merged commit 9c09d82 into main Jan 6, 2024
3 checks passed
@JamesHutchison JamesHutchison deleted the session-cache-copy-fix branch January 6, 2024 07:42
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