mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
gh-81682: Fix test failures when CPython is built without docstrings (GH-113410)
This commit is contained in:
parent
c3f92f6a75
commit
4e5b27e6a3
12 changed files with 55 additions and 21 deletions
|
@ -17,6 +17,7 @@ import unittest
|
|||
from datetime import date, datetime, time, timedelta, timezone
|
||||
from functools import cached_property
|
||||
|
||||
from test.support import MISSING_C_DOCSTRINGS
|
||||
from test.test_zoneinfo import _support as test_support
|
||||
from test.test_zoneinfo._support import OS_ENV_LOCK, TZPATH_TEST_LOCK, ZoneInfoTestBase
|
||||
from test.support.import_helper import import_module
|
||||
|
@ -404,6 +405,8 @@ class ZoneInfoTest(TzPathUserMixin, ZoneInfoTestBase):
|
|||
class CZoneInfoTest(ZoneInfoTest):
|
||||
module = c_zoneinfo
|
||||
|
||||
@unittest.skipIf(MISSING_C_DOCSTRINGS,
|
||||
"Signature information for builtins requires docstrings")
|
||||
def test_signatures(self):
|
||||
"""Ensure that C module has valid method signatures."""
|
||||
import inspect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue