Title: test_binascii: test_b2a_roundtrip() failure with Hypothesis · Issue #109421 · python/cpython · GitHub
Open Graph Title: test_binascii: test_b2a_roundtrip() failure with Hypothesis · Issue #109421 · python/cpython
X Title: test_binascii: test_b2a_roundtrip() failure with Hypothesis · Issue #109421 · python/cpython
Description: It seems like Hypothesis found an issue. Can someone have a look? How can it be reproduced locally? ERROR: test_b2a_roundtrip (test.test_binascii.MemoryviewBinASCIITest.test_b2a_roundtrip) ------------------------------------------------...
Open Graph Description: It seems like Hypothesis found an issue. Can someone have a look? How can it be reproduced locally? ERROR: test_b2a_roundtrip (test.test_binascii.MemoryviewBinASCIITest.test_b2a_roundtrip) --------...
X Description: It seems like Hypothesis found an issue. Can someone have a look? How can it be reproduced locally? ERROR: test_b2a_roundtrip (test.test_binascii.MemoryviewBinASCIITest.test_b2a_roundtrip) --------...
Opengraph URL: https://github.com/python/cpython/issues/109421
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_binascii: test_b2a_roundtrip() failure with Hypothesis","articleBody":"It seems like Hypothesis found an issue. Can someone have a look? How can it be reproduced locally?\r\n\r\n```pytb\r\nERROR: test_b2a_roundtrip (test.test_binascii.MemoryviewBinASCIITest.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.MemoryviewBinASCIITest 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\nRan 85 tests in 127.421s\r\n\r\nFAILED (errors=1, skipped=1)\r\ntest test_binascii failed\r\n```\r\n\r\nbuild: https://github.com/python/cpython/actions/runs/6189519251/job/16803785370","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-09-14T20:24:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/109421/cpython/issues/109421"}
| 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:d3c158b0-72b8-fb3f-7d51-f79669a85ba6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92FC:1F9EE9:DB674A:126E3EE:6A54396F |
| html-safe-nonce | 93eac3d3e8bf2b0196d27910484b900208ba103a1a8597693111ba461012a53e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkZDOjFGOUVFOTpEQjY3NEE6MTI2RTNFRTo2QTU0Mzk2RiIsInZpc2l0b3JfaWQiOiI3ODU0MTA3MDY1NjIyNzM5MzExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 95a17056fd1505520c82c873aa1c4d7a504b07b05f25d2047b40cf2a03d3e649 |
| hovercard-subject-tag | issue:1897254333 |
| 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/109421/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff1f08d07e3f12aaf4d44c3e4bf1e98e13cd9526442bb4e62368873bd6909d88/python/cpython/issues/109421 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff1f08d07e3f12aaf4d44c3e4bf1e98e13cd9526442bb4e62368873bd6909d88/python/cpython/issues/109421 |
| og:image:alt | It seems like Hypothesis found an issue. Can someone have a look? How can it be reproduced locally? ERROR: test_b2a_roundtrip (test.test_binascii.MemoryviewBinASCIITest.test_b2a_roundtrip) --------... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| 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