We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fbee0 commit 66e84d9Copy full SHA for 66e84d9
Lib/test/test_eof.py
@@ -37,10 +37,9 @@ def test_EOFS_with_file(self):
37
self.assertIn(b'unterminated triple-quoted string literal (detected at line 3)', err)
38
39
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)"
+ expect = "unexpected EOF while parsing (<string>, line 1)"
42
try:
43
- compile('"\\xhh" \\', '<string>', 'exec', dont_inherit=True)
+ compile('"\\Xhh" \\', '<string>', 'exec')
44
except SyntaxError as msg:
45
self.assertEqual(str(msg), expect)
46
else:
0 commit comments