Skip to content

[PR #13573/c5a75f24 backport][8.4.x] Handled CollectReport without duration attribute in terminal report #13579

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

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Jul 1, 2025

This is a backport of PR #13573 as merged into main (c5a75f2).

Fix #13478

This PR adds a regression test to fix a bug in console_output_style=times that, because it lacks the duration attribute, caused a crash when a CollectReport object (from a skipped test) was included. The test helps stop future regressions and verifies that the problem no longer exists.

Fixes #13478

---------

Co-authored-by: AD <mysideuse@gmail.com>
Co-authored-by: Bruno Oliveira <bruno@pytest.org>
(cherry picked from commit c5a75f2)
@nicoddemus nicoddemus enabled auto-merge (squash) July 1, 2025 21:16
@nicoddemus nicoddemus merged commit f87289c into 8.4.x Jul 1, 2025
36 checks passed
@nicoddemus nicoddemus deleted the patchback/backports/8.4.x/c5a75f2498c86850c4ce13bcf10d56efc92394a4/pr-13573 branch July 1, 2025 21:34
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