Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 oldlibexpat (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_reparse_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 version="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_flush_reparse_deferral_disabled)[  684s] test_flush_reparse_deferral_disabled (test.test_xml_etree.XMLPullParserTest) ... FAIL[  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


      [8]ページ先頭

      ©2009-2025 Movatter.jp