mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-37151: simplify classmethoddescr_call (GH-13340)
This commit is contained in:
parent
307d4cb957
commit
3f345c3925
2 changed files with 18 additions and 30 deletions
|
@ -1613,8 +1613,8 @@ order (MRO) for bases """
|
|||
spam_cm(spam.spamlist())
|
||||
self.assertEqual(
|
||||
str(cm.exception),
|
||||
"descriptor 'classmeth' requires a type "
|
||||
"but received a 'xxsubtype.spamlist' instance")
|
||||
"descriptor 'classmeth' for type 'xxsubtype.spamlist' "
|
||||
"needs a type, not a 'xxsubtype.spamlist' as arg 2")
|
||||
|
||||
with self.assertRaises(TypeError) as cm:
|
||||
spam_cm(list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue