Skip to content

Commit 4a02a4a

Browse files
committed
Loosen error pattern
1 parent 538832a commit 4a02a4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_source_encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def test_coding_spec_unknown_encoding(self):
547547
def test_coding_spec_decode_error(self):
548548
src = (b'# coding: shift-jis\n'
549549
b'print("\xc4\x85")\n')
550-
self.check_script_error(src, br"'shift_jis' codec can't decode byte 0x85")
550+
self.check_script_error(src, br"'shift_jis' codec can't decode byte")
551551

552552

553553
if __name__ == "__main__":

0 commit comments

Comments
 (0)