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 — Use exact comparison for bool in approx() by jvansanten · Pull Request #9354 · pytest-dev/pytest Conversation
Contributor
Fixes #9353.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
nicoddemus
reviewed
Uh oh!
There was an error while loading. Please reload this page. Co-authored-by: Bruno Oliveira <[email protected]>
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. For approx of bool, doesn't it semantically make sense to check for truthy values when requested explicitly, but also ensure is checks for implicit matches in lists mappings
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
nicoddemus
approved these changes
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
RonnyPfannschmidt
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. its good as is atm - the more tricky details are for when we implement matchers
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.3.x: 💚 backport PR created✅ Backport PR branch: Backported as #13013 🤖 @patchback |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Also fix list comparison that was only comparing the first element... Ref pytest-dev/pytest#9354 Ref pytest-dev/pytest#13218
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
pytest.approx considers boolean numeric types
There was an error while loading. Please reload this page.