|
5 | 5 | import array |
6 | 6 | import re |
7 | 7 | from test.support import bigmemtest, _1G, _4G |
8 | | -from test.support.hypothesis_helper import hypothesis |
| 8 | +from test.support.hypothesis_helper import hypothesis, mark_hypothesis |
9 | 9 |
|
10 | 10 |
|
11 | 11 | # Note: "*_hex" functions are aliases for "(un)hexlify" |
@@ -265,6 +265,7 @@ def test_uu(self): |
265 | 265 | binary=hypothesis.strategies.binary(max_size=45), |
266 | 266 | backtick=hypothesis.strategies.booleans(), |
267 | 267 | ) |
| 268 | + @mark_hypothesis |
268 | 269 | def test_b2a_roundtrip(self, binary, backtick): |
269 | 270 | converted = binascii.b2a_uu(self.type2test(binary), backtick=backtick) |
270 | 271 | restored = binascii.a2b_uu(self.type2test(converted)) |
@@ -308,6 +309,7 @@ def test_hex(self): |
308 | 309 | self.assertEqual(binascii.unhexlify(self.type2test(t)), u) |
309 | 310 |
|
310 | 311 | @hypothesis.given(binary=hypothesis.strategies.binary()) |
| 312 | + @mark_hypothesis |
311 | 313 | def test_hex_roundtrip(self, binary): |
312 | 314 | converted = binascii.hexlify(self.type2test(binary)) |
313 | 315 | restored = binascii.unhexlify(self.type2test(converted)) |
@@ -433,6 +435,7 @@ def test_qp(self): |
433 | 435 | istext=hypothesis.strategies.booleans(), |
434 | 436 | header=hypothesis.strategies.booleans(), |
435 | 437 | ) |
| 438 | + @mark_hypothesis |
436 | 439 | def test_b2a_qp_a2b_qp_round_trip(self, binary, quotetabs, istext, header): |
437 | 440 | converted = binascii.b2a_qp( |
438 | 441 | self.type2test(binary), |
@@ -504,6 +507,7 @@ def test_b2a_base64_newline(self): |
504 | 507 | binary=hypothesis.strategies.binary(), |
505 | 508 | newline=hypothesis.strategies.booleans(), |
506 | 509 | ) |
| 510 | + @mark_hypothesis |
507 | 511 | def test_base64_roundtrip(self, binary, newline): |
508 | 512 | converted = binascii.b2a_base64(self.type2test(binary), newline=newline) |
509 | 513 | restored = binascii.a2b_base64(self.type2test(converted)) |
|
0 commit comments