File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 44from test import support
55from test .support import os_helper
66from test .support import script_helper
7+ from test .support import warnings_helper
78import unittest
89
910class EOFTestCase (unittest .TestCase ):
@@ -36,10 +37,11 @@ def test_EOFS_with_file(self):
3637 rc , out , err = script_helper .assert_python_failure (file_name )
3738 self .assertIn (b'unterminated triple-quoted string literal (detected at line 3)' , err )
3839
40+ @warnings_helper .ignore_warnings (category = SyntaxWarning )
3941 def test_eof_with_line_continuation (self ):
4042 expect = "unexpected EOF while parsing (<string>, line 1)"
4143 try :
42- compile ('"\\ xhh " \\ ' , '<string>' , 'exec' , dont_inherit = True )
44+ compile ('"\\ Xhh " \\ ' , '<string>' , 'exec' )
4345 except SyntaxError as msg :
4446 self .assertEqual (str (msg ), expect )
4547 else :
You can’t perform that action at this time.
0 commit comments