summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-06-07 10:20:24 (GMT)
committerPetr Viktorin <encukou@gmail.com>2019-06-07 10:20:23 (GMT)
commit3f345c39255dc3823dd989d4e3c93b12d18c44e0 (patch)
tree3c6780c3b01ff77f57df5bed426ec08cac68b586 /Lib/test/test_descr.py
parent307d4cb957b9d34fdbbb40730f738c61c2e49be9 (diff)
downloadcpython-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.py4
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)