Skip to content

Support fixtures inside classes decorated with freeze_time #576

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

Merged
merged 1 commit into from
Jul 12, 2025

Conversation

bblommers
Copy link
Collaborator

@bblommers bblommers commented Jun 7, 2025

Fixes #575

The new test (having a fixture inside a test-class annotated by freeze_time) passes against three pytest 8.2.0, 8.4.0 and 8.4.1.

@bblommers bblommers force-pushed the support-fixtures-pytest-840 branch from da49e94 to bc3c25a Compare June 7, 2025 12:30
@bblommers bblommers force-pushed the support-fixtures-pytest-840 branch from bc3c25a to f4bf942 Compare July 12, 2025 18:22
@bblommers bblommers merged commit 3111775 into master Jul 12, 2025
30 checks passed
@bblommers bblommers deleted the support-fixtures-pytest-840 branch July 12, 2025 18:32
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.

Freezegun breaks pytest fixture discovery starting pytest 8.4.0
1 participant