gh-81682: Fix test failures when CPython is built without docstrings (GH-113410)

This commit is contained in:
Serhiy Storchaka 2023-12-23 11:56:30 +02:00 committed by GitHub
parent c3f92f6a75
commit 4e5b27e6a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 55 additions and 21 deletions

View file

@ -8,7 +8,7 @@ import unittest
from unittest.mock import MagicMock
from test.support import (requires, verbose, SaveSignals, cpython_only,
check_disallow_instantiation)
check_disallow_instantiation, MISSING_C_DOCSTRINGS)
from test.support.import_helper import import_module
# Optionally test curses module. This currently requires that the
@ -1142,6 +1142,8 @@ class TestCurses(unittest.TestCase):
with self.assertRaises(TypeError):
del stdscr.encoding
@unittest.skipIf(MISSING_C_DOCSTRINGS,
"Signature information for builtins requires docstrings")
def test_issue21088(self):
stdscr = self.stdscr
#