mirror of
https://github.com/python/cpython.git
synced 2025-11-08 01:21:42 +00:00
[3.13] gh-133167: Fix compilation process with --enable-optimizations and --without-docstrings (GH-133187) (#133207)
gh-133167: Fix compilation process with `--enable-optimizations` and `--without-docstrings` (GH-133187)
(cherry picked from commit cc39b19f0f)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
0458554482
commit
704a3f8c0a
4 changed files with 10 additions and 5 deletions
|
|
@ -603,6 +603,7 @@ def test_dunder_is_original(self):
|
|||
if dunder:
|
||||
self.assertIs(dunder, orig)
|
||||
|
||||
@support.requires_docstrings
|
||||
def test_attrgetter_signature(self):
|
||||
operator = self.module
|
||||
sig = inspect.signature(operator.attrgetter)
|
||||
|
|
@ -610,6 +611,7 @@ def test_attrgetter_signature(self):
|
|||
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)
|
||||
|
|
@ -617,6 +619,7 @@ def test_itemgetter_signature(self):
|
|||
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