Closed
Description
Right now one test in test_xml_etree
contains two helpers called check_mapping
and check_string
:
cpython/Lib/test/test_xml_etree.py
Lines 206 to 241 in 8dd2766
It originates from very old code:
cpython/Lib/test/test_xml_etree.py
Lines 140 to 169 in d9a550b
It is half-baked with lots of obvious things to be improved.
I think that it is safe just to replace them with:
check_string
toassertIsInstance(str)
check_mapping
toassertIsInstance(dict)
It is more correct, because both Python and C implementations only use str
and dict
for checked attributes. And in this case we can skip re-inventing tests for mapping and string.