mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -2,6 +2,7 @@ import unittest
|
|||
from unittest.mock import patch
|
||||
import builtins
|
||||
import rlcompleter
|
||||
from test.support import MISSING_C_DOCSTRINGS
|
||||
|
||||
class CompleteMe:
|
||||
""" Trivial class used in testing rlcompleter.Completer. """
|
||||
|
@ -40,12 +41,12 @@ class TestRlcompleter(unittest.TestCase):
|
|||
|
||||
# test with a customized namespace
|
||||
self.assertEqual(self.completer.global_matches('CompleteM'),
|
||||
['CompleteMe()'])
|
||||
['CompleteMe(' if MISSING_C_DOCSTRINGS else 'CompleteMe()'])
|
||||
self.assertEqual(self.completer.global_matches('eg'),
|
||||
['egg('])
|
||||
# XXX: see issue5256
|
||||
self.assertEqual(self.completer.global_matches('CompleteM'),
|
||||
['CompleteMe()'])
|
||||
['CompleteMe(' if MISSING_C_DOCSTRINGS else 'CompleteMe()'])
|
||||
|
||||
def test_attr_matches(self):
|
||||
# test with builtins namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue