Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index 270cab0..10868f3 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -287,6 +287,7 @@
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):