Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[7.4.x] Fix user_properties not saved to XML if fixture errors during teardown #11382

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

nicoddemus
Copy link
Member

Move handling of user_properties to finalize().

Previously if a fixture failed during teardown, pytest_runtest_logreport would not be called with "teardown", resulting in the user properties not being saved on the JUnit XML file.

Fixes: #11367
(cherry picked from commit 917ce9a)

Move handling of user_properties to `finalize()`.

Previously if a fixture failed during teardown, `pytest_runtest_logreport` would not be called with "teardown", resulting in the user properties not being saved on the JUnit XML file.

Fixes: pytest-dev#11367
(cherry picked from commit 917ce9a)
@nicoddemus nicoddemus merged commit 7f5d9b9 into pytest-dev:7.4.x Sep 3, 2023
@nicoddemus nicoddemus deleted the backport-11369 branch September 3, 2023 18:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants