summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-12-23 11:50:01 (GMT)
committerGitHub <noreply@github.com>2023-12-23 11:50:01 (GMT)
commitfc4d2c3dc66d34eddadd1208984a38a46757d6da (patch)
treeadd33c148a7a277d33079ccd20f96bb87c44bd3b /Lib/test/test_functools.py
parentfee2bc15f9a22016dce5d8248caf320cfb48e9b6 (diff)
downloadcpython-fc4d2c3dc66d34eddadd1208984a38a46757d6da.zip
cpython-fc4d2c3dc66d34eddadd1208984a38a46757d6da.tar.gz
cpython-fc4d2c3dc66d34eddadd1208984a38a46757d6da.tar.bz2
[3.12] gh-81682: Fix test failures when CPython is built without docstrings (GH-113410) (GH-113429)
(cherry picked from commit 4e5b27e6a3be85853bd04d45128dd7cc706bb1c8)
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r--Lib/test/test_functools.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index ce2bdeb..80d0176 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -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)')