gh-56276: Add tests to test_compare#3199
Conversation
|
Hi @matrixise, It hasn't been reviewed yet. I don't have any other updates. |
Sorry, something went wrong.
From test_compare part of PR-15167.
|
Merge conflicts were from test_compare part of #15167. Waiting for retest results. On issue, Martin Panter said, after committing doc changes, "Someone needs to decide whether to use Andy’s tests as they are, or perhaps modify or drop some or all of them." Cheryl created this PR from the test part of the last .diff file and review is still needed. |
Sorry, something went wrong.
|
Tests that I presume once passed now fail due to improved constant constant folding and identity checking of results. The following now prints True & True in batch mode, whereas the tests below presume the opposite. (In interactive mode, where each line is compiled separately, they print false as matching constants requires that they be compiled together.) I think all the is not tests should be deleted. Only leave 'a is a' test and 'a is not b' where b is bound to a different constant. |
Sorry, something went wrong.
|
Retriggering the latest test suit so everyone concerned has access to the failed logs. |
Sorry, something went wrong.
They passed because they remain correct for CPython and the toy subclass, but are not part of the definition of Python.
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
|
Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
(cherry picked from commit 68ee8b3) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
The part of the Maier-Panter bpo patch that hasn't been committed yet (doc changes were).
Contributed by: Andy Maier.
Contributed by: Martin Panter.