File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -823,8 +823,8 @@ def test_constant_as_name(self):
823823
824824    def  test_constant_as_unicode_name (self ):
825825        for  constant  in  b"Tru\xe1 \xb5 \x89 " , b"Fal\xc5 \xbf e" , b"N\xc2 \xba ne" :
826-             with  self .assertRaises (ValueError ,
827-                 msg = "identifier must not be None, True or False after NFKC  normalization" ):
826+             with  self .assertRaisesRegex (ValueError ,
827+                 "identifier must not be None, True or False after Unicode  normalization  \\ (NKFC \\ ) " ):
828828                ast .parse (constant , mode = "eval" )
829829
830830    def  test_precedence_enum (self ):
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ _PyPegen_new_identifier(Parser *p, const char *n)
553553        _PyUnicode_EqualToASCIIString (id , "True" ) || 
554554        _PyUnicode_EqualToASCIIString (id , "False" ))
555555    {
556-         PyErr_SetString (PyExc_ValueError , "identifier must not be None, True or False after NFKC  normalization" );
556+         PyErr_SetString (PyExc_ValueError , "identifier must not be None, True or False after Unicode  normalization (NKFC) " );
557557        Py_DECREF (id );
558558        goto error ;
559559    }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments