New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate and unused code in tests #90356
Comments
There are two tests with the same name in a same test class in
So, because of this bad naming - the first test is always shadowed by the second one and is silently skipped. With my patch: 1660 tests, without: 1659 tests. PR to rename the second test is on its way. |
Also fund a duplicate TestHelpers class in test_enum. A warning for duplicate method is a false positive, because the two methods are used on different python versions. But the first method uses |
Eric, should I patch this as well in this issue? |
Sometimes people fix small things in multiple modules, sometimes they create separate tickets to have one patch per module with reviews from different maintainers and so on. For this case, I check pyflakes and found a handful of true positives, so I would retitle the ticket to be about duplicate methods in tests. |
Thanks! I will also attach all
I will refactor some more in my existing PR. |
test_get_unstructured_invalid_ew
in test__header_value_parser.py
test_get_unstructured_invalid_ew
in test__header_value_parser.py
I think most of these are false positives (it’s fine if 10 different tests define a function |
Yes, they are! Please, check out my PR: сб, 1 янв. 2022 г. в 21:52, Éric Araujo <report@bugs.python.org>:
|
test_asyncio.test_sslproto
#31801Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: