Skip to content

Commit 12b6c64

Browse files
committed
fix meta invalid escape in test_invalid_escape_locations_with_offset
1 parent 19dc865 commit 12b6c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_string_literals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_eval_str_invalid_octal_escape(self):
177177
def test_invalid_escape_locations_with_offset(self):
178178
with warnings.catch_warnings(record=True) as w:
179179
warnings.simplefilter('always', category=SyntaxWarning)
180-
eval("\"'''''''''''''''''''''invalid\ Escape\"")
180+
eval("\"'''''''''''''''''''''invalid\\ Escape\"")
181181
self.assertEqual(len(w), 1)
182182
self.assertEqual(str(w[0].message),
183183
r'"\ " is an invalid escape sequence. Such sequences '

0 commit comments

Comments
 (0)