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 56f8640 commit ab784f0Copy full SHA for ab784f0
Lib/test/test_descr.py
@@ -1833,7 +1833,7 @@ def test_refleaks_in_staticmethod___init__(self):
1833
1834
def test_staticmethod_new(self):
1835
sm = staticmethod.__new__(staticmethod, None)
1836
- self.assertIsInstance(repr(sm), str)
+ self.assertEqual(repr(sm), '<staticmethod(None)>')
1837
1838
def test_classmethod_new_none_repr(self):
1839
cm = classmethod.__new__(classmethod, None)
0 commit comments