Title: test_b2a_roundtrip failure in test_binascii.py · Issue #109418 · python/cpython · GitHub
Open Graph Title: test_b2a_roundtrip failure in test_binascii.py · Issue #109418 · python/cpython
X Title: test_b2a_roundtrip failure in test_binascii.py · Issue #109418 · python/cpython
Description: Bug report Bug description: Seen in GitHub CI: ====================================================================== ERROR: test_b2a_roundtrip (test.test_binascii.BytearrayBinASCIITest.test_b2a_roundtrip) -------------------------------...
Open Graph Description: Bug report Bug description: Seen in GitHub CI: ====================================================================== ERROR: test_b2a_roundtrip (test.test_binascii.BytearrayBinASCIITest.test_b2a_ro...
X Description: Bug report Bug description: Seen in GitHub CI: ====================================================================== ERROR: test_b2a_roundtrip (test.test_binascii.BytearrayBinASCIITest.test_b2a_ro...
Opengraph URL: https://github.com/python/cpython/issues/109418
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_b2a_roundtrip failure in test_binascii.py","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\nSeen in GitHub CI:\r\n\r\n```pytb\r\n======================================================================\r\nERROR: test_b2a_roundtrip (test.test_binascii.BytearrayBinASCIITest.test_b2a_roundtrip)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_binascii.py\", line 233, in test_b2a_roundtrip\r\n binary=hypothesis.strategies.binary(),\r\n ^^^^^^^\r\n File \"/home/runner/work/cpython/cpython-builddir/hypovenv/lib/python3.13/site-packages/hypothesis/core.py\", line 1386, in wrapped_test\r\n raise the_error_hypothesis_found\r\n File \"/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_binascii.py\", line 237, in test_b2a_roundtrip\r\n converted = binascii.b2a_uu(self.type2test(binary), backtick=backtick)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nbinascii.Error: At most 45 bytes at once\r\nFalsifying example: test_b2a_roundtrip(\r\n self=\u003ctest.test_binascii.BytearrayBinASCIITest testMethod=test_b2a_roundtrip\u003e,\r\n binary=b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00',\r\n backtick=False,\r\n)\r\n\r\nYou can reproduce this example by temporarily adding @reproduce_failure('6.84.0', b'AXicY2RgYBwciIEBAA2TAC8=') as a decorator on your test case\r\n```\r\n\r\n(https://github.com/python/cpython/actions/runs/6189137441/job/16802618181?pr=109344)\r\n\r\nI think we need a `max_size=45` in:\r\nhttps://github.com/python/cpython/blob/3b9d10b0316cdc2679ccad80563b7c7da3951388/Lib/test/test_binascii.py#L232-L239\r\n\r\ncc @sobolevn\r\n\r\n### CPython versions tested on:\r\n\r\nCPython main branch\r\n\r\n### Operating systems tested on:\r\n\r\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-109419\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2023-09-14T18:39:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/109418/cpython/issues/109418"}
| 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:390de347-7d87-c74e-e908-63da2cbe1ccf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5E6:117213:28D85E:36181D:6A52F442 |
| html-safe-nonce | 465c2fe814efdf4baa84b8169a5a311f93f5fb84305c87ca7c08053a22ff919a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUU2OjExNzIxMzoyOEQ4NUU6MzYxODFEOjZBNTJGNDQyIiwidmlzaXRvcl9pZCI6IjI3NTk4OTA0MzA3OTE0NDc2MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | da1c80a38c718f2e2e8e0bf35a574ace1f8302eb16669d1b7e69b545312aa651 |
| hovercard-subject-tag | issue:1897110147 |
| 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/109418/issue_layout |
| twitter:image | https://opengraph.githubassets.com/705d22f893ff1737dd651e3891e6caaa66e6d7630856370682ff36698d1109a1/python/cpython/issues/109418 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/705d22f893ff1737dd651e3891e6caaa66e6d7630856370682ff36698d1109a1/python/cpython/issues/109418 |
| og:image:alt | Bug report Bug description: Seen in GitHub CI: ====================================================================== ERROR: test_b2a_roundtrip (test.test_binascii.BytearrayBinASCIITest.test_b2a_ro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width