python3/fix-check-error-with-CVEfixed-expat-2.5.0.patch
2024-06-25 04:10:00 +00:00

29 lines
983 B
Diff

diff -ur a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py
--- a/Lib/test/test_xml_etree.py 2024-06-25 03:33:22.925676272 +0000
+++ b/Lib/test/test_xml_etree.py 2024-06-25 03:34:30.900338499 +0000
@@ -121,8 +121,8 @@
</foo>
"""
-fails_with_expat_2_6_0 = (unittest.expectedFailure
- if pyexpat.version_info >= (2, 6, 0) else
+fails_with_expat_2_5_0 = (unittest.expectedFailure
+ if pyexpat.version_info >= (2, 5, 0) else
lambda test: test)
def checkwarnings(*filters, quiet=False):
@@ -1424,11 +1424,11 @@
self.assert_event_tags(parser, [('end', 'root')])
self.assertIsNone(parser.close())
- @fails_with_expat_2_6_0
+ @fails_with_expat_2_5_0
def test_simple_xml_chunk_1(self):
self.test_simple_xml(chunk_size=1)
- @fails_with_expat_2_6_0
+ @fails_with_expat_2_5_0
def test_simple_xml_chunk_5(self):
self.test_simple_xml(chunk_size=5)