File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 pass
1212else :
1313
14- @given (binary = st .binary (min_size = 1 ))
15- def test_bytes_serialization_decode_many (binary , message_normalizer ):
16- result = message_normalizer (binary , should_repr_strings = False )
17- assert result == binary .decode ("utf-8" , "replace" )
18-
19- @given (binary = st .binary (min_size = 1 ))
20- def test_bytes_serialization_repr_many (binary , message_normalizer ):
21- result = message_normalizer (binary , should_repr_strings = True )
22- assert result == repr (binary )
14+ def test_bytes_serialization_decode_many (message_normalizer ):
15+ @given (binary = st .binary (min_size = 1 ))
16+ def inner (binary ):
17+ result = message_normalizer (binary , should_repr_strings = False )
18+ assert result == binary .decode ("utf-8" , "replace" )
19+
20+ inner ()
21+
22+ def test_bytes_serialization_repr_many (message_normalizer ):
23+ @given (binary = st .binary (min_size = 1 ))
24+ def inner (binary ):
25+ result = message_normalizer (binary , should_repr_strings = True )
26+ assert result == repr (binary )
27+
28+ inner ()
2329
2430
2531@pytest .fixture
You can’t perform that action at this time.
0 commit comments