bpo-37151: simplify classmethoddescr_call (GH-13340)

This commit is contained in:
Jeroen Demeyer 2019-06-07 12:20:24 +02:00 committed by Petr Viktorin
parent 307d4cb957
commit 3f345c3925
2 changed files with 18 additions and 30 deletions

View file

@ -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)