Skip to content

Commit 66e84d9

Browse files
committed
Apply Pablo's comments
1 parent f9fbee0 commit 66e84d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_eof.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ def test_EOFS_with_file(self):
3737
self.assertIn(b'unterminated triple-quoted string literal (detected at line 3)', err)
3838

3939
def test_eof_with_line_continuation(self):
40-
expect = "(unicode error) 'unicodeescape' codec can't decode bytes in " \
41-
"position 0-1: truncated \\xXX escape (<string>, line 1)"
40+
expect = "unexpected EOF while parsing (<string>, line 1)"
4241
try:
43-
compile('"\\xhh" \\', '<string>', 'exec', dont_inherit=True)
42+
compile('"\\Xhh" \\', '<string>', 'exec')
4443
except SyntaxError as msg:
4544
self.assertEqual(str(msg), expect)
4645
else:

0 commit comments

Comments
 (0)