We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab784f0 commit 270d183Copy full SHA for 270d183
Lib/test/test_descr.py
@@ -1837,7 +1837,7 @@ def test_staticmethod_new(self):
1837
1838
def test_classmethod_new_none_repr(self):
1839
cm = classmethod.__new__(classmethod, None)
1840
- self.assertIsInstance(repr(cm), str)
+ self.assertEqual(repr(cm), '<classmethod(None)>')
1841
1842
def test_staticmethod_func_readonly(self):
1843
sm = staticmethod(lambda x: x)
0 commit comments