Skip to content

Fix fixture teardown duration reporting - #15229

Open
Thibault-dlr wants to merge 3 commits into
pytest-dev:mainfrom
Thibault-dlr:fix-5591-fixture-teardown-duration
Open

Thibault-dlr wants to merge 3 commits into
pytest-dev:mainfrom
Thibault-dlr:fix-5591-fixture-teardown-duration

Conversation

@Thibault-dlr

Copy link
Copy Markdown

Ensure teardown duration for parametrized fixtures is attributed to the previous test's teardown phase rather than the next test's setup phase.
Preserve finalizer ordering when finishing stale fixtures.
Handle base fixtures requested through an overriding fixture.

Added regression tests for teardown duration reporting, finalizer ordering, and overridden fixtures.
testing/test_runner.py testing/python/fixtures.py -q: 313 passed, 2 skipped, 3 xfailed.
git diff --check: passed.

Fixes #5591.

This branch has not been deployed

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

Teardown duration reported in the following setup (pytest_runtest_logreport)

1 participant