Skip to content

Both test_flush_reparse_deferral_disabled tests fail with older libexpat (2.4.4) #117187

Closed
@mcepl

Description

@mcepl

Bug report

Bug description:

Running the test suite for 3.9.19 (and other currently released versions) breaks with the old libexpat (of course, patched for the security issues):

[  684s] 0:04:10 load avg: 0.64 Re-running test_sax in verbose mode (matching: test_flush_re
parse_deferral_disabled)
[  684s] test_flush_reparse_deferral_disabled (test.test_sax.ExpatReaderTest) ... FAIL
[  684s] 
[  684s] ======================================================================
[  684s] FAIL: test_flush_reparse_deferral_disabled (test.test_sax.ExpatReaderTest)
[  684s] ----------------------------------------------------------------------
[  684s] Traceback (most recent call last):
[  684s]   File "/home/abuild/rpmbuild/BUILD/Python-3.9.19/Lib/test/test_sax.py", line 1251,
 in test_flush_reparse_deferral_disabled
[  684s]     self.assertEqual(result.getvalue(), start)  # i.e. no elements started
[  684s] AssertionError: b'<?xml version="1.0" encoding="iso-8859-1"?>\n<doc>' != b'<?xml ve
rsion="1.0" encoding="iso-8859-1"?>\n'
[  684s] 
[  684s] ----------------------------------------------------------------------
[  684s] Ran 1 test in 0.001s
[  684s] 
[  684s] FAILED (failures=1)
[  684s] test test_sax failed
[  684s] 0:04:10 load avg: 0.64 Re-running test_xml_etree in verbose mode (matching: test_fl
ush_reparse_deferral_disabled)
[  684s] test_flush_reparse_deferral_disabled (test.test_xml_etree.XMLPullParserTest) ... FA
IL
[  684s] 
[  684s] ======================================================================
[  684s] FAIL: test_flush_reparse_deferral_disabled (test.test_xml_etree.XMLPullParserTest)
[  684s] ----------------------------------------------------------------------
[  684s] Traceback (most recent call last):
[  684s]   File "/home/abuild/rpmbuild/BUILD/Python-3.9.19/Lib/test/test_xml_etree.py", line
 1659, in test_flush_reparse_deferral_disabled
[  684s]     self.assert_event_tags(parser, [])  # i.e. no elements started
[  684s]   File "/home/abuild/rpmbuild/BUILD/Python-3.9.19/Lib/test/test_xml_etree.py", line
 1395, in assert_event_tags
[  684s]     self.assertEqual([(action, elem.tag) for action, elem in events],
[  684s] AssertionError: Lists differ: [('start', 'doc')] != []
[  684s] 
[  684s] First list contains 1 additional elements.
[  684s] First extra element 0:
[  684s] ('start', 'doc')
[  684s] 
[  684s] - [('start', 'doc')]
[  684s] + []
[  684s] 
[  684s] ----------------------------------------------------------------------
[  684s] Ran 1 test in 0.001s

Complete build log with all package versions and steps taken recorded.

CPython versions tested on:

3.8, 3.9, 3.10

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions