| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
cc @hugovk @AA-Turner: I've left this PR as a draft to avoid mentioning many code owners |
Sorry, something went wrong.
There was a problem hiding this comment.
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.
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.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
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 class A that are usually dummy classes). |
Sorry, something went wrong.
|
To have a cleaner, I'll isolate the test fix for test_dataclass_derived_generic_from_slotted_base which was duplicated. See #132516. Once it's merged, we can revert the commit. |
Sorry, something went wrong.
…ef-unused-names-132396
There was a problem hiding this comment.
Thank you!
Sorry, something went wrong.
|
And backport? |
Sorry, something went wrong.
|
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.
…b/test/`` (pythonGH-132397) (cherry picked from commit 1d5dc5f) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
GH-132699 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…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 <10796600+picnixz@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
There was a duplicated test, namely test_dataclass_derived_generic_from_slotted_base, which I've fixed in #132516.