Skip to content

chore: Fix testlib so that failing tests are reported as failing - #260

Merged
hoodmane merged 1 commit into
cloudflare:mainfrom
hoodmane:hoodmane/dont-pass-failing-tests
Sep 16, 2026
Merged

hoodmane merged 1 commit into
cloudflare:mainfrom
hoodmane:hoodmane/dont-pass-failing-tests

Conversation

@hoodmane

Copy link
Copy Markdown
Contributor

pytest_runtest_makereport is called with status="passed", when="teardown" when teardown succeeds even when the test failed. We were previously overwriting the fail info with the teardown.

@ryanking13

Copy link
Copy Markdown
Contributor

Huh, so we were silently ignoring failing tests?

pytest_runtest_makereport is called with status="passed", when="teardown" when
teardown succeeds even when the test failed. We were previously overwriting the
fail info with the teardown.
@hoodmane
hoodmane force-pushed the hoodmane/dont-pass-failing-tests branch from 3fe996d to 7626900 Compare September 16, 2026 21:43
@hoodmane

Copy link
Copy Markdown
Contributor Author

Indeed.

@hoodmane
hoodmane merged commit a18965f into cloudflare:main Sep 16, 2026
15 checks passed
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.

3 participants