aports/community/py3-twisted/remove-failing-test.patch

36 lines
1.4 KiB
Diff

From 6b4bbf9040abd8e5c8feae026c4a6483c7f72506 Mon Sep 17 00:00:00 2001
From: Glyph <glyph@twistedmatrix.com>
Date: Sun, 27 Mar 2022 18:03:49 -0700
Subject: [PATCH] remove spurious test for illegal whitespace in xmlns
---
src/twisted/newsfragments/10318.misc | 0
src/twisted/words/test/test_domish.py | 10 ----------
2 files changed, 10 deletions(-)
create mode 100644 src/twisted/newsfragments/10318.misc
diff --git a/src/twisted/newsfragments/10318.misc b/src/twisted/newsfragments/10318.misc
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/src/twisted/words/test/test_domish.py b/src/twisted/words/test/test_domish.py
index 646d64557c0..e27692abc49 100644
--- a/src/twisted/words/test/test_domish.py
+++ b/src/twisted/words/test/test_domish.py
@@ -308,16 +308,6 @@ def testEmptyChildNS(self):
self.stream.parse(xml)
self.assertEqual(self.elements[0].child2.uri, "")
- def test_namespaceWithWhitespace(self):
- """
- Whitespace in an xmlns value is preserved in the resulting node's C{uri}
- attribute.
- """
- xml = b"<root xmlns:foo=' bar baz '><foo:bar foo:baz='quux'/></root>"
- self.stream.parse(xml)
- self.assertEqual(self.elements[0].uri, " bar baz ")
- self.assertEqual(self.elements[0].attributes, {(" bar baz ", "baz"): "quux"})
-
def test_attributesWithNamespaces(self):
"""
Attributes with namespace are parsed without Exception.