GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — Handled CollectReport without duration attribute in terminal report by coder-aditi · Pull Request #13573 · pytest-dev/pytest Conversation
Contributor
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.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
nicoddemus
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure I follow, doesn't the change in
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this fix mainly prevents the AttributeError from showing up, which is expected now asthe bug is resolved.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But the fact that the bug is fixed, means that the message does not show up, correct?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason why this test is not added to
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @nicoddemus , test_terminal.py was already existing,, so thought of making another new unit test file. Shall I add this in that existing file only? please let me know
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes please. 👍
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
nicoddemus
reviewed
Uh oh!
There was an error while loading. Please reload this page. Co-authored-by: Bruno Oliveira <[email protected]> for more information, see https://pre-commit.ci for more information, see https://pre-commit.ci
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
nicoddemus
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
Backport to 8.4.x: 💚 backport PR created✅ Backport PR branch: Backported as #13579 🤖 @patchback |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fixes #13478 --------- Co-authored-by: AD <[email protected]> Co-authored-by: Bruno Oliveira <[email protected]> (cherry picked from commit c5a75f2)
Fixes #13478 --------- (cherry picked from commit c5a75f2) Co-authored-by: Aditi De <[email protected]> Co-authored-by: AD <[email protected]> Co-authored-by: Bruno Oliveira <[email protected]>
) Fixes pytest-dev#13478 --------- Co-authored-by: AD <[email protected]> Co-authored-by: Bruno Oliveira <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Crash withconsole_output_style=times and skipping tests
There was an error while loading. Please reload this page.