mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.
This commit is contained in:
commit
26f1166510
6 changed files with 53 additions and 28 deletions
|
@ -290,6 +290,7 @@ class TestUpdateWrapper(unittest.TestCase):
|
|||
with self.assertRaises(AttributeError):
|
||||
functools.update_wrapper(wrapper, f, assign, update)
|
||||
|
||||
@support.requires_docstrings
|
||||
@unittest.skipIf(sys.flags.optimize >= 2,
|
||||
"Docstrings are omitted with -O2 and above")
|
||||
def test_builtin_update(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue