aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_xml_etree.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-04-14 21:12:34 +0200
committerGitHub <noreply@github.com>2019-04-14 21:12:34 +0200
commit3c5a858ec6a4e5851903762770fe526a46d3c351 (patch)
treed6a95ae26cb8b9f1c0963248e79a60f0d87726c3 /Lib/test/test_xml_etree.py
parentcd466559c4a312b3c1223a774ad4df19fc4f0407 (diff)
downloadcpython-3c5a858ec6a4e5851903762770fe526a46d3c351.tar.gz
cpython-3c5a858ec6a4e5851903762770fe526a46d3c351.zip
bpo-30485: Re-allow empty strings in ElementPath namespace mappings since they might actually be harmless and unused (and thus went undetected previously). (#12830)
Diffstat (limited to 'Lib/test/test_xml_etree.py')
-rw-r--r--Lib/test/test_xml_etree.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py
index 2f7a3b60b22..f5b118b079e 100644
--- a/Lib/test/test_xml_etree.py
+++ b/Lib/test/test_xml_etree.py
@@ -2466,9 +2466,6 @@ class ElementFindTest(unittest.TestCase):
nsmap = {'xx': 'X', None: 'Y'}
self.assertEqual(len(root.findall(".//xx:b", namespaces=nsmap)), 2)
self.assertEqual(len(root.findall(".//b", namespaces=nsmap)), 1)
- nsmap = {'xx': 'X', '': 'Y'}
- with self.assertRaisesRegex(ValueError, 'namespace prefix'):
- root.findall(".//xx:b", namespaces=nsmap)
def test_bad_find(self):
e = ET.XML(SAMPLE_XML)