[New-bugs-announce] [issue46198] Duplicated test name `test_get_unstructured_invalid_ew` in `test__header_value_parser.py`

Nikita Sobolev report at bugs.python.org
Wed Dec 29 19:23:42 EST 2021


New submission from Nikita Sobolev <mail at sobolevn.me>:

There are two tests with the same name in a same test class in `Lib/test/test_email/test__header_value_parser.py`: `test_get_unstructured_invalid_ew`

1. https://github.com/python/cpython/blob/8e11237c5d24e649b26cc928b52bc37f2fde9c7a/Lib/test/test_email/test__header_value_parser.py#L304
2. https://github.com/python/cpython/blob/8e11237c5d24e649b26cc928b52bc37f2fde9c7a/Lib/test/test_email/test__header_value_parser.py#L398

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.

----------
components: Tests
messages: 409338
nosy: sobolevn
priority: normal
severity: normal
status: open
title: Duplicated test name `test_get_unstructured_invalid_ew` in `test__header_value_parser.py`
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46198>
_______________________________________


More information about the New-bugs-announce mailing list