-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Walrus operator causes different behavior in PyTest. #10743
Copy link
Copy link
Closed
Labels
needs backportapplied to PRs, indicates that it should be ported to the current bug-fix branchapplied to PRs, indicates that it should be ported to the current bug-fix branchtopic: rewriterelated to the assertion rewrite mechanismrelated to the assertion rewrite mechanismtype: bugproblem that needs to be addressedproblem that needs to be addressed
Metadata
Metadata
Assignees
Labels
needs backportapplied to PRs, indicates that it should be ported to the current bug-fix branchapplied to PRs, indicates that it should be ported to the current bug-fix branchtopic: rewriterelated to the assertion rewrite mechanismrelated to the assertion rewrite mechanismtype: bugproblem that needs to be addressedproblem that needs to be addressed
I am currently testing the following function but find that the function passes the test in the normal Python terminal but fails in a PyTest run. The walrus operator is relatively new and not many people use it. I think that there may be an inconsistency in the execution environment.