@@ -882,7 +882,9 @@ def test_utf8_2byte_sequence_complete_coverage():
882882 f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> { repr (result )} "
883883 )
884884 except UnicodeEncodeError :
885- print (f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> <decoded>" )
885+ print (
886+ f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> <decoded>"
887+ )
886888 # Check that overlong sequences are handled (behavior may vary by platform)
887889 assert len (result ) > 0 , f"Should produce some output for overlong U+{ codepoint :04X} "
888890 except Exception as e :
@@ -1101,7 +1103,9 @@ def test_utf8_3byte_sequence_complete_coverage():
11011103 f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> { repr (result )} "
11021104 )
11031105 except UnicodeEncodeError :
1104- print (f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> <decoded>" )
1106+ print (
1107+ f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> <decoded>"
1108+ )
11051109 # Check that overlong sequences are handled (behavior may vary by platform)
11061110 assert len (result ) > 0 , f"Should produce some output for overlong U+{ codepoint :04X} "
11071111 except Exception as e :
@@ -1333,7 +1337,9 @@ def test_utf8_4byte_sequence_complete_coverage():
13331337 f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> { repr (result )} "
13341338 )
13351339 except UnicodeEncodeError :
1336- print (f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> <decoded>" )
1340+ print (
1341+ f" { test_bytes .hex ()} : Overlong encoding of U+{ codepoint :04X} ({ desc } ) -> <decoded>"
1342+ )
13371343 # Check that overlong sequences are handled (behavior may vary by platform)
13381344 assert len (result ) > 0 , f"Should produce some output for overlong U+{ codepoint :04X} "
13391345 except Exception as e :
0 commit comments