File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ def test_invalid_escape_locations_with_offset(self):
172
172
with warnings .catch_warnings (record = True ) as w :
173
173
warnings .simplefilter ('error' , category = SyntaxWarning )
174
174
with self .assertRaises (SyntaxError ) as cm :
175
- eval ("\" '''''''''''''''''''''invalid\ Escape\" " )
175
+ eval ("\" '''''''''''''''''''''invalid\\ Escape\" " )
176
176
exc = cm .exception
177
177
self .assertEqual (w , [])
178
178
self .assertEqual (exc .msg , r"invalid escape sequence '\ '" )
@@ -183,7 +183,7 @@ def test_invalid_escape_locations_with_offset(self):
183
183
with warnings .catch_warnings (record = True ) as w :
184
184
warnings .simplefilter ('error' , category = SyntaxWarning )
185
185
with self .assertRaises (SyntaxError ) as cm :
186
- eval ("\" ''Incorrect \ logic?\" " )
186
+ eval ("\" ''Incorrect \\ logic?\" " )
187
187
exc = cm .exception
188
188
self .assertEqual (w , [])
189
189
self .assertEqual (exc .msg , r"invalid escape sequence '\ '" )
You can’t perform that action at this time.
0 commit comments