summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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 6b018ccc56..301a2d2a0f 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)