Skip to content

Commit aff2967

Browse files
committed
Cannot => cannot
1 parent b23bd8d commit aff2967

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Lib/test/test_capi/test_abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

Lib/test/test_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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():

Lib/test/test_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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():

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

Objects/setobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)