]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109418: Fix hypothesis strategy for b2a_roundtrip test (#109419)
authorNikita Sobolev <mail@sobolevn.me>
Thu, 14 Sep 2023 20:38:31 +0000 (23:38 +0300)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2023 20:38:31 +0000 (14:38 -0600)
Lib/test/test_binascii.py

index 3d3e0746e9bfdf9befc42c46413552bbde4b07d4..ef744f6b97259ce1b528eafc606221d74b85441f 100644 (file)
@@ -230,7 +230,7 @@ class BinASCIITest(unittest.TestCase):
             binascii.b2a_uu(b"", True)
 
     @hypothesis.given(
-        binary=hypothesis.strategies.binary(),
+        binary=hypothesis.strategies.binary(max_size=45),
         backtick=hypothesis.strategies.booleans(),
     )
     def test_b2a_roundtrip(self, binary, backtick):