File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 66
77class EOFTestCase (unittest .TestCase ):
88 def test_EOFC (self ):
9- expect = "EOL while scanning single-quoted string (<string>, line 1)"
9+ expect = "EOL while scanning string literal (<string>, line 1)"
1010 try :
1111 eval ("""'this is a test\
1212 """ )
@@ -16,7 +16,8 @@ def test_EOFC(self):
1616 raise test_support .TestFailed
1717
1818 def test_EOFS (self ):
19- expect = "EOF while scanning triple-quoted string (<string>, line 1)"
19+ expect = ("EOF while scanning triple-quoted string literal "
20+ "(<string>, line 1)" )
2021 try :
2122 eval ("""'''this is a test""" )
2223 except SyntaxError , msg :
Original file line number Diff line number Diff line change @@ -1500,10 +1500,10 @@ err_input(perrdetail *err)
15001500 msg = "invalid token" ;
15011501 break ;
15021502 case E_EOFS :
1503- msg = "EOF while scanning triple-quoted string" ;
1503+ msg = "EOF while scanning triple-quoted string literal " ;
15041504 break ;
15051505 case E_EOLS :
1506- msg = "EOL while scanning single-quoted string" ;
1506+ msg = "EOL while scanning string literal " ;
15071507 break ;
15081508 case E_INTR :
15091509 if (!PyErr_Occurred ())
You can’t perform that action at this time.
0 commit comments