Skip to content

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
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.

2 participants