Skip to content

Commit 270d183

Browse files
Aniketsyvstinner
andauthored
Update Lib/test/test_descr.py
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent ab784f0 commit 270d183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_descr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ def test_staticmethod_new(self):
18371837

18381838
def test_classmethod_new_none_repr(self):
18391839
cm = classmethod.__new__(classmethod, None)
1840-
self.assertIsInstance(repr(cm), str)
1840+
self.assertEqual(repr(cm), '<classmethod(None)>')
18411841

18421842
def test_staticmethod_func_readonly(self):
18431843
sm = staticmethod(lambda x: x)

0 commit comments

Comments
 (0)