Skip to content

Commit 22cee3c

Browse files
committed
gh-131649: fix test_string_literals SyntaxWarning
1 parent ef06508 commit 22cee3c

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
@@ -188,7 +188,7 @@ def test_invalid_escape_locations_with_offset(self):
188188

189189
with warnings.catch_warnings(record=True) as w:
190190
warnings.simplefilter('always', category=SyntaxWarning)
191-
eval("\"''Incorrect \ logic?\"")
191+
eval("\"''Incorrect \\ logic?\"")
192192
self.assertEqual(len(w), 1)
193193
self.assertEqual(str(w[0].message),
194194
r'"\ " is an invalid escape sequence. Such sequences '

0 commit comments

Comments
 (0)