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 — gh-132396: address `redefinition of unused name` errors in `Lib/test` by picnixz · Pull Request #132397 · python/cpython Conversation
|
|
cc @hugovk @AA-Turner: I've left this PR as a draft to avoid mentioning many code owners |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
All of the noqa comments seems like a lot of noise in these test files, and I'm not sure how much benefit we gain?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Indeed, but at the same they allowed me to find two tests with the same name. So... unless we just noqa-them globally we wouldn't be able to see future ones (and thus it wouldn't help at all =/) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
|
By bumping the ruff version, it appears that the code that would raise is now correctly marked as "unreachable", so suppression is no more an issue. To minimize the diff I've marked all variables with a single letter as being dummy (that way, we ignore classes of the form |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
To have a cleaner, I'll isolate the test fix for See #132516. Once it's merged, we can revert the commit. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ef-unused-names-132396
There was an error while loading. Please reload this page.
redefinition of unused name errors in Lib/testredefinition of unused name errors in Lib/test
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
And backport? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @picnixz for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…b/test/`` (pythonGH-132397) (cherry picked from commit 1d5dc5f) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Adam Turner <[email protected]>
|
GH-132699 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ib/test/`` (GH-132397) (#132699) gh-132396: Resolve 'redefinition of unused name' errors in ``Lib/test/`` (GH-132397) (cherry picked from commit 1d5dc5f) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Adam Turner <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.