File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ def test_mapping_haskey(self):
460460            self .assertFalse (haskey ({}, []))
461461            self .assertEqual (cm .unraisable .exc_type , TypeError )
462462            self .assertEqual (str (cm .unraisable .exc_value ),
463-                              "Cannot  use 'list' as a dict key " 
463+                              "cannot  use 'list' as a dict key " 
464464                             "(unhashable type: 'list')" )
465465
466466        with  support .catch_unraisable_exception () as  cm :
Original file line number Diff line number Diff line change @@ -1493,7 +1493,7 @@ def test_unhashable_key(self):
14931493        key  =  [1 , 2 , 3 ]
14941494
14951495        def  check_unhashable_key ():
1496-             msg  =  "Cannot  use 'list' as a dict key (unhashable type: 'list')" 
1496+             msg  =  "cannot  use 'list' as a dict key (unhashable type: 'list')" 
14971497            return  self .assertRaisesRegex (TypeError , re .escape (msg ))
14981498
14991499        with  check_unhashable_key ():
Original file line number Diff line number Diff line change @@ -651,7 +651,7 @@ def test_unhashable_element(self):
651651        elem  =  [1 , 2 , 3 ]
652652
653653        def  check_unhashable_element ():
654-             msg  =  "Cannot  use 'list' as a set element (unhashable type: 'list')" 
654+             msg  =  "cannot  use 'list' as a set element (unhashable type: 'list')" 
655655            return  self .assertRaisesRegex (TypeError , re .escape (msg ))
656656
657657        with  check_unhashable_element ():
Original file line number Diff line number Diff line change @@ -2287,7 +2287,7 @@ dict_unhashtable_type(PyObject *key)
22872287    }
22882288
22892289    PyErr_Format (PyExc_TypeError ,
2290-                  "Cannot  use '%T' as a dict key (%S)" ,
2290+                  "cannot  use '%T' as a dict key (%S)" ,
22912291                 key , exc );
22922292    Py_DECREF (exc );
22932293}
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ set_unhashtable_type(PyObject *key)
222222    }
223223
224224    PyErr_Format (PyExc_TypeError ,
225-                  "Cannot  use '%T' as a set element (%S)" ,
225+                  "cannot  use '%T' as a set element (%S)" ,
226226                 key , exc );
227227    Py_DECREF (exc );
228228}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments