Title: `test_enum` broken for WASI under Python 3.11 · Issue #111797 · python/cpython · GitHub
Open Graph Title: `test_enum` broken for WASI under Python 3.11 · Issue #111797 · python/cpython
X Title: `test_enum` broken for WASI under Python 3.11 · Issue #111797 · python/cpython
Description: Bug report Bug description: https://buildbot.python.org/all/#/builders/1047/builds/1074 ====================================================================== FAIL: /Doc/howto/enum.rst Doctest: enum.rst ----------------------------------...
Open Graph Description: Bug report Bug description: https://buildbot.python.org/all/#/builders/1047/builds/1074 ====================================================================== FAIL: /Doc/howto/enum.rst Doctest: enu...
X Description: Bug report Bug description: https://buildbot.python.org/all/#/builders/1047/builds/1074 ====================================================================== FAIL: /Doc/howto/enum.rst Doctest: enu...
Opengraph URL: https://github.com/python/cpython/issues/111797
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_enum` broken for WASI under Python 3.11","articleBody":"# Bug report\n\n### Bug description:\n\nhttps://buildbot.python.org/all/#/builders/1047/builds/1074\n\n```\n======================================================================\nFAIL: /Doc/howto/enum.rst\nDoctest: enum.rst\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/Lib/doctest.py\", line 2239, in runTest\n raise self.failureException(self.format_failure(new.getvalue()))\nAssertionError: Failed doctest test for enum.rst\n File \"/Doc/howto/enum.rst\", line 0\n----------------------------------------------------------------------\nFile \"/Doc/howto/enum.rst\", line 1395, in enum.rst\nFailed example:\n class Color(DuplicateFreeEnum):\n RED = 1\n GREEN = 2\n BLUE = 3\n GRENE = 2\nExpected:\n Traceback (most recent call last):\n ...\n ValueError: aliases not allowed in DuplicateFreeEnum: 'GRENE' --\u003e 'GREEN'\n Error calling __set_name__ on '_proto_member' instance 'GRENE' in 'Color'\nGot:\n Traceback (most recent call last):\n File \"/Lib/doctest.py\", line 1351, in __run\n exec(compile(example.source, filename, \"single\",\n File \"\u003cdoctest enum.rst[160]\u003e\", line 1, in \u003cmodule\u003e\n class Color(DuplicateFreeEnum):\n File \"/Lib/enum.py\", line 566, in __new__\n raise exc\n File \"/Lib/enum.py\", line 275, in __set_name__\n enum_member.__init__(*args)\n File \"\u003cdoctest enum.rst[159]\u003e\", line 7, in __init__\n raise ValueError(\n ValueError: aliases not allowed in DuplicateFreeEnum: 'GRENE' --\u003e 'GREEN'\n----------------------------------------------------------------------\n```\n\n### CPython versions tested on:\n\n3.11\n\n### Operating systems tested on:\n\nOther\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-111805\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/brettcannon","@type":"Person","name":"brettcannon"},"datePublished":"2023-11-06T23:34:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/111797/cpython/issues/111797"}
| 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:97c6c06c-f56d-0416-764f-309163b54a2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D006:27B1FA:AB2C84:E12AC3:696B55F1 |
| html-safe-nonce | 63e4d74dcfaaa53a4be5268e97fd04174b3638fc323ff6233c09aa30cd8b0220 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDA2OjI3QjFGQTpBQjJDODQ6RTEyQUMzOjY5NkI1NUYxIiwidmlzaXRvcl9pZCI6IjUwMDcyMTYxODk5MTQxNzQ5NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 043c5073146698e4e9cad25926ed6337277bc2c5dc1254c726f8cee51d3d0a71 |
| hovercard-subject-tag | issue:1980266837 |
| 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/111797/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5868dd637aadbc831c4fd922154b92f0b82ac3afabd09ca12a976313d7b630b/python/cpython/issues/111797 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5868dd637aadbc831c4fd922154b92f0b82ac3afabd09ca12a976313d7b630b/python/cpython/issues/111797 |
| og:image:alt | Bug report Bug description: https://buildbot.python.org/all/#/builders/1047/builds/1074 ====================================================================== FAIL: /Doc/howto/enum.rst Doctest: enu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brettcannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width