File tree 1 file changed +15
-9
lines changed
1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change 11
11
pass
12
12
else :
13
13
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 ()
23
29
24
30
25
31
@pytest .fixture
You can’t perform that action at this time.
0 commit comments