Skip to content

Commit fd8c6fa

Browse files
committed
Fix error message regex
1 parent 334e2bf commit fd8c6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_codecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ def test_encode(self):
877877

878878
class UTF32Test(unittest.TestCase):
879879
def test_utf32_surrogate_error(self):
880-
with self.assertRaisesRegex(UnicodeDecodeError, "'utf_32' codec can't decode bytes in position 4-7"):
880+
with self.assertRaisesRegex(UnicodeDecodeError, "codec can't decode bytes in position 4-7"):
881881
b'a\x00\x00\x00\x00\xd8\x00\x00z\x00\x00\x00'.decode('utf-32')
882882

883883

0 commit comments

Comments
 (0)