Title: test.test_xml_etree*.XMLPullParserTest.test_simple_xml fails with (system) expat 2.6.0 · Issue #115133 · python/cpython · GitHub
Open Graph Title: test.test_xml_etree*.XMLPullParserTest.test_simple_xml fails with (system) expat 2.6.0 · Issue #115133 · python/cpython
X Title: test.test_xml_etree*.XMLPullParserTest.test_simple_xml fails with (system) expat 2.6.0 · Issue #115133 · python/cpython
Description: Bug report Bug description: Expat 2.6.0 was released yesterday, with CVE fixes. After upgrading the system library and building CPython --with-system-expat, I'm getting the following test failures: =======================================...
Open Graph Description: Bug report Bug description: Expat 2.6.0 was released yesterday, with CVE fixes. After upgrading the system library and building CPython --with-system-expat, I'm getting the following test failures:...
X Description: Bug report Bug description: Expat 2.6.0 was released yesterday, with CVE fixes. After upgrading the system library and building CPython --with-system-expat, I'm getting the following test failu...
Opengraph URL: https://github.com/python/cpython/issues/115133
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test.test_xml_etree*.XMLPullParserTest.test_simple_xml fails with (system) expat 2.6.0","articleBody":"# Bug report\n\n### Bug description:\n\n[Expat 2.6.0](https://github.com/libexpat/libexpat/blob/R_2_6_0/expat/Changes) was released yesterday, with CVE fixes. After upgrading the system library and building CPython `--with-system-expat`, I'm getting the following test failures:\n\n```pytb\n======================================================================\nFAIL: test_simple_xml (test.test_xml_etree.XMLPullParserTest.test_simple_xml) (chunk_size=1)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/mgorny/git/cpython/Lib/test/test_xml_etree.py\", line 1495, in test_simple_xml\n self.assert_event_tags(parser, [('end', 'element')])\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/mgorny/git/cpython/Lib/test/test_xml_etree.py\", line 1480, in assert_event_tags\n self.assertEqual([(action, elem.tag) for action, elem in events],\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n expected)\n ^^^^^^^^^\nAssertionError: Lists differ: [] != [('end', 'element')]\n\nSecond list contains 1 additional elements.\nFirst extra element 0:\n('end', 'element')\n\n- []\n+ [('end', 'element')]\n\n======================================================================\nFAIL: test_simple_xml (test.test_xml_etree.XMLPullParserTest.test_simple_xml) (chunk_size=5)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/mgorny/git/cpython/Lib/test/test_xml_etree.py\", line 1498, in test_simple_xml\n self.assert_event_tags(parser, [\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^\n ('end', 'element'),\n ^^^^^^^^^^^^^^^^^^^\n ('end', 'empty-element'),\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n ])\n ^^\n File \"/home/mgorny/git/cpython/Lib/test/test_xml_etree.py\", line 1480, in assert_event_tags\n self.assertEqual([(action, elem.tag) for action, elem in events],\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n expected)\n ^^^^^^^^^\nAssertionError: Lists differ: [('end', 'element')] != [('end', 'element'), ('end', 'empty-element')]\n\nSecond list contains 1 additional elements.\nFirst extra element 1:\n('end', 'empty-element')\n\n- [('end', 'element')]\n+ [('end', 'element'), ('end', 'empty-element')]\n\n----------------------------------------------------------------------\n======================================================================\nFAIL: test_simple_xml (test.test_xml_etree_c.XMLPullParserTest.test_simple_xml) (chunk_size=1)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/mgorny/git/cpython/Lib/test/test_xml_etree.py\", line 1495, in test_simple_xml\n self.assert_event_tags(parser, [('end', 'element')])\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/mgorny/git/cpython/Lib/test/test_xml_etree.py\", line 1480, in assert_event_tags\n self.assertEqual([(action, elem.tag) for action, elem in events],\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n expected)\n ^^^^^^^^^\nAssertionError: Lists differ: [] != [('end', 'element')]\n\nSecond list contains 1 additional elements.\nFirst extra element 0:\n('end', 'element')\n\n- []\n+ [('end', 'element')]\n\n======================================================================\nFAIL: test_simple_xml (test.test_xml_etree_c.XMLPullParserTest.test_simple_xml) (chunk_size=5)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/mgorny/git/cpython/Lib/test/test_xml_etree.py\", line 1498, in test_simple_xml\n self.assert_event_tags(parser, [\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^\n ('end', 'element'),\n ^^^^^^^^^^^^^^^^^^^\n ('end', 'empty-element'),\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n ])\n ^^\n File \"/home/mgorny/git/cpython/Lib/test/test_xml_etree.py\", line 1480, in assert_event_tags\n self.assertEqual([(action, elem.tag) for action, elem in events],\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n expected)\n ^^^^^^^^^\nAssertionError: Lists differ: [('end', 'element')] != [('end', 'element'), ('end', 'empty-element')]\n\nSecond list contains 1 additional elements.\nFirst extra element 1:\n('end', 'empty-element')\n\n- [('end', 'element')]\n+ [('end', 'element'), ('end', 'empty-element')]\n\n----------------------------------------------------------------------\n```\n\nI have reproduced with 3.11.8, 3.12.8 and main as of 2afc7182e66635b3ec7efb59d2a6c18a7ad1f215, both using Gentoo ebuild and raw git repository. I've tested the latter like this:\n\n```\n./configure -C --with-system-expat\nmake -j12\n./python -u -W default -bb -E -m test -vv test_xml_etree{,_c}\n```\n\nCC @hartwork \n\n### CPython versions tested on:\n\n3.11, 3.12, CPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-115138\n* gh-115164\n* gh-115288\n* gh-115289\n* gh-115525\n* gh-115535\n* gh-115536\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mgorny","@type":"Person","name":"mgorny"},"datePublished":"2024-02-07T10:08:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/115133/cpython/issues/115133"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ccd63361-a6dd-fa71-2528-4820d5564712 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E56:2D16FA:3A571D4:5317CB7:6A569A93 |
| html-safe-nonce | 3c01c7c44d4e849a3e34b9dc0d2329803b034ec35d8d548e1eeea7296735828a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTU2OjJEMTZGQTozQTU3MUQ0OjUzMTdDQjc6NkE1NjlBOTMiLCJ2aXNpdG9yX2lkIjoiNjM1MDk3NzQxOTUwODYxOTkyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 74e108d448df8219ea81c4dd92cb5b2c3978a2ff014c35eb25a3a77c36d9f1d8 |
| hovercard-subject-tag | issue:2122655774 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/115133/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c6876f08be0e74739a35bb67d5dbfcb578ee842c8aa152be02bcbdd388698b8/python/cpython/issues/115133 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c6876f08be0e74739a35bb67d5dbfcb578ee842c8aa152be02bcbdd388698b8/python/cpython/issues/115133 |
| og:image:alt | Bug report Bug description: Expat 2.6.0 was released yesterday, with CVE fixes. After upgrading the system library and building CPython --with-system-expat, I'm getting the following test failures:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgorny |
| hostname | github.com |
| expected-hostname | github.com |
| None | 647a25f437e2f54eccdd162bd007c8ae70f4235c4125dba0f4518747cc8b9615 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 05adb86a60ce3d701e556eded3ab26300ec6bcc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width