File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,6 @@ def test_ellipsis(self):
257257 self .assertTrue (x is Ellipsis )
258258 self .assertRaises (SyntaxError , eval , ".. ." )
259259
260- # TODO: RUSTPYTHON
261- @unittest .expectedFailure
262260 def test_eof_error (self ):
263261 samples = ("def foo(" , "\n def foo(" , "def foo(\n " )
264262 for s in samples :
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ where
568568 } else {
569569 if ( c == '\n' && !triple_quoted) || ( is_bytes && !c. is_ascii ( ) ) {
570570 return Err ( LexicalError {
571- error : LexicalErrorType :: StringError ,
571+ error : LexicalErrorType :: Eof ,
572572 location : self . get_pos ( ) ,
573573 } ) ;
574574 }
@@ -784,7 +784,7 @@ where
784784 // First of all, we need all nestings to be finished.
785785 if self . nesting > 0 {
786786 return Err ( LexicalError {
787- error : LexicalErrorType :: NestingError ,
787+ error : LexicalErrorType :: Eof ,
788788 location : tok_pos,
789789 } ) ;
790790 }
You can’t perform that action at this time.
0 commit comments