mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
gh-133167: Fix compilation process with --enable-optimizations
and --without-docstrings
(#133187)
This commit is contained in:
parent
8b26b23a96
commit
cc39b19f0f
4 changed files with 10 additions and 5 deletions
|
@ -636,6 +636,7 @@ class OperatorTestCase:
|
|||
if dunder:
|
||||
self.assertIs(dunder, orig)
|
||||
|
||||
@support.requires_docstrings
|
||||
def test_attrgetter_signature(self):
|
||||
operator = self.module
|
||||
sig = inspect.signature(operator.attrgetter)
|
||||
|
@ -643,6 +644,7 @@ class OperatorTestCase:
|
|||
sig = inspect.signature(operator.attrgetter('x', 'z', 'y'))
|
||||
self.assertEqual(str(sig), '(obj, /)')
|
||||
|
||||
@support.requires_docstrings
|
||||
def test_itemgetter_signature(self):
|
||||
operator = self.module
|
||||
sig = inspect.signature(operator.itemgetter)
|
||||
|
@ -650,6 +652,7 @@ class OperatorTestCase:
|
|||
sig = inspect.signature(operator.itemgetter(2, 3, 5))
|
||||
self.assertEqual(str(sig), '(obj, /)')
|
||||
|
||||
@support.requires_docstrings
|
||||
def test_methodcaller_signature(self):
|
||||
operator = self.module
|
||||
sig = inspect.signature(operator.methodcaller)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue