mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] gh-81682: Fix test failures when CPython is built without docstrings (GH-113410) (GH-113429)
(cherry picked from commit 4e5b27e6a3
)
This commit is contained in:
parent
fee2bc15f9
commit
fc4d2c3dc6
12 changed files with 43 additions and 16 deletions
|
@ -939,6 +939,8 @@ class TestCmpToKey:
|
|||
self.assertRaises(TypeError, hash, k)
|
||||
self.assertNotIsInstance(k, collections.abc.Hashable)
|
||||
|
||||
@unittest.skipIf(support.MISSING_C_DOCSTRINGS,
|
||||
"Signature information for builtins requires docstrings")
|
||||
def test_cmp_to_signature(self):
|
||||
self.assertEqual(str(Signature.from_callable(self.cmp_to_key)),
|
||||
'(mycmp)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue