mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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
|
@ -9,6 +9,7 @@ import unittest
|
|||
import warnings
|
||||
import importlib.util
|
||||
import importlib
|
||||
from test.support import MISSING_C_DOCSTRINGS
|
||||
|
||||
|
||||
class LoaderTests:
|
||||
|
@ -373,7 +374,8 @@ class MultiPhaseExtensionModuleTests(abc.LoaderTests):
|
|||
with self.subTest(name):
|
||||
module = self.load_module_by_name(name)
|
||||
self.assertEqual(module.__name__, name)
|
||||
self.assertEqual(module.__doc__, "Module named in %s" % lang)
|
||||
if not MISSING_C_DOCSTRINGS:
|
||||
self.assertEqual(module.__doc__, "Module named in %s" % lang)
|
||||
|
||||
|
||||
(Frozen_MultiPhaseExtensionModuleTests,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue