File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2917,7 +2917,11 @@ def test_strptime(self):
29172917        with  self .assertRaises (ValueError ): strptime ("z" , "%z" )
29182918
29192919        # test only ascii is allowed 
2920-         with  self .assertRaises (ValueError ): strptime ('٢025-03-09' , '%Y-%m-%d' )
2920+         with  self .assertRaises (ValueError ): strptime ('٢025-0٢-٢9' , '%Y-%m-%d' )
2921+         with  self .assertRaises (ValueError ): strptime ('1٢:02:٢7' , '%H:%M:%S' )
2922+         with  self .assertRaises (ValueError ): strptime ('٢5' , '%y' )
2923+         with  self .assertRaises (ValueError ): strptime ('٢555' , '%G' )
2924+         with  self .assertRaises (ValueError ): strptime ('٢/03 0٢a٢' , '%j/%y %I%p:%M:%S' )
29212925
29222926    def  test_strptime_single_digit (self ):
29232927        # bpo-34903: Check that single digit dates and times are allowed. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments