python-xmltodict/skip-tests-expat-245.patch

29 lines
1.0 KiB
Diff
Raw Normal View History

Index: xmltodict-0.12.0/tests/test_xmltodict.py
===================================================================
--- xmltodict-0.12.0.orig/tests/test_xmltodict.py
+++ xmltodict-0.12.0/tests/test_xmltodict.py
@@ -8,6 +8,7 @@ except ImportError:
from xml.parsers.expat import ParserCreate
from xml.parsers import expat
+import pyexpat
def _encode(s):
@@ -167,6 +168,7 @@ class XMLToDictTestCase(unittest.TestCas
self.assertEqual(parse(xml),
parse(xml.encode('utf-8')))
+ @unittest.skipIf(pyexpat.version_info >= (2, 4, 5), reason="Makes no sense with current Expat")
def test_namespace_support(self):
xml = """
<root xmlns="http://defaultns.com/"
@@ -195,6 +197,7 @@ class XMLToDictTestCase(unittest.TestCas
res = parse(xml, process_namespaces=True)
self.assertEqual(res, d)
+ @unittest.skipIf(pyexpat.version_info >= (2, 4, 5), reason="Makes no sense with current Expat")
def test_namespace_collapse(self):
xml = """
<root xmlns="http://defaultns.com/"