diff options
author | Jeroen Demeyer <J.Demeyer@UGent.be> | 2019-06-07 10:20:24 (GMT) |
---|---|---|
committer | Petr Viktorin <encukou@gmail.com> | 2019-06-07 10:20:23 (GMT) |
commit | 3f345c39255dc3823dd989d4e3c93b12d18c44e0 (patch) | |
tree | 3c6780c3b01ff77f57df5bed426ec08cac68b586 /Lib/test/test_descr.py | |
parent | 307d4cb957b9d34fdbbb40730f738c61c2e49be9 (diff) | |
download | cpython-3f345c39255dc3823dd989d4e3c93b12d18c44e0.zip cpython-3f345c39255dc3823dd989d4e3c93b12d18c44e0.tar.gz cpython-3f345c39255dc3823dd989d4e3c93b12d18c44e0.tar.bz2 |
bpo-37151: simplify classmethoddescr_call (GH-13340)
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 6b018cc..301a2d2 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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) |