@@ -2644,7 +2644,7 @@ def test_buffer_api_usage(self):
2644
2644
view_decoded = codecs .decode (view , encoding )
2645
2645
self .assertEqual (view_decoded , data )
2646
2646
2647
- def test_text_to_binary_blacklists_binary_transforms (self ):
2647
+ def test_text_to_binary_denylists_binary_transforms (self ):
2648
2648
# Check binary -> binary codecs give a good error for str input
2649
2649
bad_input = "bad input type"
2650
2650
for encoding in bytes_transform_encodings :
@@ -2656,14 +2656,14 @@ def test_text_to_binary_blacklists_binary_transforms(self):
2656
2656
bad_input .encode (encoding )
2657
2657
self .assertIsNone (failure .exception .__cause__ )
2658
2658
2659
- def test_text_to_binary_blacklists_text_transforms (self ):
2659
+ def test_text_to_binary_denylists_text_transforms (self ):
2660
2660
# Check str.encode gives a good error message for str -> str codecs
2661
2661
msg = (r"^'rot_13' is not a text encoding; "
2662
2662
r"use codecs.encode\(\) to handle arbitrary codecs" )
2663
2663
with self .assertRaisesRegex (LookupError , msg ):
2664
2664
"just an example message" .encode ("rot_13" )
2665
2665
2666
- def test_binary_to_text_blacklists_binary_transforms (self ):
2666
+ def test_binary_to_text_denylists_binary_transforms (self ):
2667
2667
# Check bytes.decode and bytearray.decode give a good error
2668
2668
# message for binary -> binary codecs
2669
2669
data = b"encode first to ensure we meet any format restrictions"
@@ -2678,7 +2678,7 @@ def test_binary_to_text_blacklists_binary_transforms(self):
2678
2678
with self .assertRaisesRegex (LookupError , msg ):
2679
2679
bytearray (encoded_data ).decode (encoding )
2680
2680
2681
- def test_binary_to_text_blacklists_text_transforms (self ):
2681
+ def test_binary_to_text_denylists_text_transforms (self ):
2682
2682
# Check str -> str codec gives a good error for binary input
2683
2683
for bad_input in (b"immutable" , bytearray (b"mutable" )):
2684
2684
with self .subTest (bad_input = bad_input ):
0 commit comments