This is another take on python#93022, fixespython#93018.
1. I believe it is inappropriate to assert on the error message for the
external API. Error messages are not part of the provided contract
with its users.
2. I don't think we are really care what exact exception is thrown, it
is much more important that non-well-formed XML is discovered.
3. Changing tests based on the version of library seems as a code smell
to me, but that's personal opinion.
mcepl commentedMay 20, 2022
This
cpython/Lib/test/test_minidom.py
Line 1152 in f20a6a5
and this
cpython/Lib/test/test_minidom.py
Line 1620 in f20a6a5
is wrong. Change of raised errors happened already in 2.4.4 not only in 2.4.5.
The text was updated successfully, but these errors were encountered: