Title: Python 3.13: test_xml_etree fails on expat 2.2.5 (RHEL8 / Rocky linux 8 / Ubuntu 22.04) · Issue #125067 · python/cpython · GitHub
Open Graph Title: Python 3.13: test_xml_etree fails on expat 2.2.5 (RHEL8 / Rocky linux 8 / Ubuntu 22.04) · Issue #125067 · python/cpython
X Title: Python 3.13: test_xml_etree fails on expat 2.2.5 (RHEL8 / Rocky linux 8 / Ubuntu 22.04) · Issue #125067 · python/cpython
Description: Bug report Bug description: I'm attempting to build Python 3.13.0 for Rocky Linux 8, and several tests are failing: LD_LIBRARY_PATH=/usr/src/python ./python -m test --pgo --timeout= Using random seed: 1341012311 0:00:00 load avg: 15.81 R...
Open Graph Description: Bug report Bug description: I'm attempting to build Python 3.13.0 for Rocky Linux 8, and several tests are failing: LD_LIBRARY_PATH=/usr/src/python ./python -m test --pgo --timeout= Using random se...
X Description: Bug report Bug description: I'm attempting to build Python 3.13.0 for Rocky Linux 8, and several tests are failing: LD_LIBRARY_PATH=/usr/src/python ./python -m test --pgo --timeout= Using rando...
Opengraph URL: https://github.com/python/cpython/issues/125067
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python 3.13: test_xml_etree fails on expat 2.2.5 (RHEL8 / Rocky linux 8 / Ubuntu 22.04)","articleBody":"# Bug report\n\n### Bug description:\n\nI'm attempting to build Python 3.13.0 for Rocky Linux 8, and several tests are failing:\n\n```\nLD_LIBRARY_PATH=/usr/src/python ./python -m test --pgo --timeout=\nUsing random seed: 1341012311\n0:00:00 load avg: 15.81 Run 44 tests sequentially in a single process\n0:00:00 load avg: 15.81 [ 1/44] test_array\n0:00:02 load avg: 14.70 [ 2/44] test_base64\n0:00:02 load avg: 14.70 [ 3/44] test_binascii\n0:00:03 load avg: 14.70 [ 4/44] test_binop\n0:00:03 load avg: 14.70 [ 5/44] test_bisect\n0:00:03 load avg: 14.70 [ 6/44] test_bytes\n0:00:13 load avg: 12.83 [ 7/44] test_bz2\n0:00:14 load avg: 12.83 [ 8/44] test_cmath\n0:00:14 load avg: 12.83 [ 9/44] test_codecs\n0:00:17 load avg: 12.04 [10/44] test_collections\n0:00:21 load avg: 12.04 [11/44] test_complex\n0:00:22 load avg: 11.32 [12/44] test_dataclasses\n0:00:23 load avg: 11.32 [13/44] test_datetime\n0:00:31 load avg: 10.57 [14/44] test_decimal\n0:00:41 load avg: 9.25 [15/44] test_difflib\n0:00:44 load avg: 8.67 [16/44] test_embed\n0:01:01 load avg: 7.35 [17/44] test_float\n0:01:01 load avg: 7.35 [18/44] test_fstring\n0:01:06 load avg: 7.00 [19/44] test_functools\n0:01:08 load avg: 6.68 [20/44] test_generators\ntest test_generators failed\n0:01:08 load avg: 6.68 [21/44] test_hashlib -- test_generators failed (1 failure)\n0:01:10 load avg: 6.68 [22/44] test_heapq\n0:01:11 load avg: 6.68 [23/44] test_int\n0:01:14 load avg: 6.47 [24/44] test_itertools\n0:01:25 load avg: 6.16 [25/44] test_json\n0:01:33 load avg: 5.52 [26/44] test_long\n0:01:40 load avg: 5.31 [27/44] test_lzma\n0:01:41 load avg: 5.31 [28/44] test_math\n0:01:49 load avg: 5.04 [29/44] test_memoryview\n0:01:49 load avg: 5.04 [30/44] test_operator\n0:01:50 load avg: 5.04 [31/44] test_ordered_dict\n0:01:52 load avg: 5.04 [32/44] test_patma\n0:01:52 load avg: 4.79 [33/44] test_pickle\n0:02:07 load avg: 4.10 [34/44] test_pprint\n0:02:08 load avg: 4.10 [35/44] test_re\n0:02:10 load avg: 4.10 [36/44] test_set\n0:02:24 load avg: 4.68 [37/44] test_sqlite3\n0:02:26 load avg: 4.68 [38/44] test_statistics\n0:02:45 load avg: 6.26 [39/44] test_str\n0:02:50 load avg: 6.32 [40/44] test_struct\n0:02:52 load avg: 6.32 [41/44] test_tabnanny\n0:02:53 load avg: 6.45 [42/44] test_time\n0:02:55 load avg: 6.45 [43/44] test_xml_etree\ntest test_xml_etree failed\n0:02:57 load avg: 6.45 [44/44] test_xml_etree_c -- test_xml_etree failed (3 failures)\ntest test_xml_etree_c failed\ntest_xml_etree_c failed (3 failures)\nTotal duration: 2 min 59 sec\nTotal tests: run=9,361 failures=7 skipped=204\nTotal test files: run=44/44 failed=3\n```\n\nThese tests are required to succeed in order for `--enable-optimizations` to work as expected.\n\nI am using the following build options:\n\n```\n./configure \\\n --enable-loadable-sqlite-extensions \\\n --enable-optimizations \\\n --enable-shared \\\n --with-lto \\\n --with-system-expat \\\n --with-ensurepip \\\n LDFLAGS=-Wl,-rpath=/usr/local/lib\n```\n\n3.9-3.12.6 do not exhibit this behavior when built with the same commands (aside from the Python version).\n\nI'm curious whether there might be a regression for certain versions of expat, similar to https://github.com/python/cpython/issues/117187. \n\nexpat-devel version is `expat-2.2.5-15.el8`.\n\nThe specific test failures are:\n\n```\n======================================================================\nFAIL: test_flush_reparse_deferral_disabled (test.test_xml_etree.XMLPullParserTest.test_flush_reparse_deferral_disabled)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/usr/src/python/Lib/test/test_xml_etree.py\", line 1752, in test_flush_reparse_deferral_disabled\n self.assert_event_tags(parser, [('start', 'doc')])\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/src/python/Lib/test/test_xml_etree.py\", line 1483, in assert_event_tags\n self.assertEqual([(action, elem.tag) for action, elem in events],\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n expected)\n ^^^^^^^^^\nAssertionError: Lists differ: [] != [('start', 'doc')]\n\nSecond list contains 1 additional elements.\nFirst extra element 0:\n('start', 'doc')\n\n- []\n+ [('start', 'doc')]\n\n======================================================================\nFAIL: test_simple_xml_chunk_1 (test.test_xml_etree.XMLPullParserTest.test_simple_xml_chunk_1)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/usr/src/python/Lib/test/test_xml_etree.py\", line 1508, in test_simple_xml_chunk_1\n self.test_simple_xml(chunk_size=1, flush=True)\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/src/python/Lib/test/test_xml_etree.py\", line 1496, in test_simple_xml\n self.assert_event_tags(parser, [('end', 'element')])\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/src/python/Lib/test/test_xml_etree.py\", line 1483, 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_chunk_5 (test.test_xml_etree.XMLPullParserTest.test_simple_xml_chunk_5)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/usr/src/python/Lib/test/test_xml_etree.py\", line 1511, in test_simple_xml_chunk_5\n self.test_simple_xml(chunk_size=5, flush=True)\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/src/python/Lib/test/test_xml_etree.py\", line 1496, in test_simple_xml\n self.assert_event_tags(parser, [('end', 'element')])\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/src/python/Lib/test/test_xml_etree.py\", line 1483, 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----------------------------------------------------------------------\nRan 198 tests in 0.423s\n\nFAILED (failures=3, skipped=6)\ntest test_xml_etree failed\ntest_xml_etree failed (3 failures)\n\n== Tests result: FAILURE ==\n\n1 test failed:\n test_xml_etree\n\nTotal duration: 640 ms\nTotal tests: run=198 failures=3 skipped=6\nTotal test files: run=1/1 failed=1\nResult: FAILURE\n```\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nLinux","author":{"url":"https://github.com/JacobHenner","@type":"Person","name":"JacobHenner"},"datePublished":"2024-10-07T21:15:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":49},"url":"https://github.com/125067/cpython/issues/125067"}
| 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:78eb1f5d-0bbb-10bd-f3a6-5221d58be2dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9676:1B3C3A:474B74:65A22B:6A573052 |
| html-safe-nonce | 131fb3484214f3488f4193635716ab0e80448d3dc421731959bd7fbf2ec48962 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Njc2OjFCM0MzQTo0NzRCNzQ6NjVBMjJCOjZBNTczMDUyIiwidmlzaXRvcl9pZCI6IjM2MzE0MzEyOTMzNDk2MDU0NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7838d1dfe909376b2515c14ce5583677ff9cd6500ffc3781551eb248253223d7 |
| hovercard-subject-tag | issue:2571493130 |
| 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/125067/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6dd3b7d81fe52017beec117192144df81e5bfaad6f356138463ab4408eabb812/python/cpython/issues/125067 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6dd3b7d81fe52017beec117192144df81e5bfaad6f356138463ab4408eabb812/python/cpython/issues/125067 |
| og:image:alt | Bug report Bug description: I'm attempting to build Python 3.13.0 for Rocky Linux 8, and several tests are failing: LD_LIBRARY_PATH=/usr/src/python ./python -m test --pgo --timeout= Using random se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JacobHenner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width