]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31472)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Feb 2022 16:16:09 +0000 (08:16 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Feb 2022 16:16:09 +0000 (17:16 +0100)
commit7da97f61816f3cadaa6788804b22a2434b40e8c5
tree58ee0fe3db12540fac3b4975289ea0a68c5ed47d
parent633d0f90f933515a9fca21a38cf87a8baf8ddc7d
bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31472)

Curly brackets were never allowed in namespace URIs
according to RFC 3986, and so-called namespace-validating
XML parsers have the right to reject them a invalid URIs.

libexpat >=2.4.5 has become strcter in that regard due to
related security issues; with ET.XML instantiating a
namespace-aware parser under the hood, this test has no
future in CPython.

References:
- https://datatracker.ietf.org/doc/html/rfc3968
- https://www.w3.org/TR/xml-names/

Also, test_minidom.py: Support Expat >=2.4.5
(cherry picked from commit 2cae93832f46b245847bdc252456ddf7742ef45e)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
Lib/test/test_minidom.py
Lib/test/test_xml_etree.py
Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst [new file with mode: 0644]