summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-27 18:04:26 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-27 18:04:26 (GMT)
commitf011881d7d48f5ad529ce1b4e8da313a62526350 (patch)
treedf8d5813abaea34519d7fbc72f108c1e7f3d7384 /Lib/test/test_functools.py
parentef0a44c629b84036edee5b4513159299993a7524 (diff)
parent26f116651030c77c93f0a98026baf7812963a30c (diff)
downloadcpython-f011881d7d48f5ad529ce1b4e8da313a62526350.zip
cpython-f011881d7d48f5ad529ce1b4e8da313a62526350.tar.gz
cpython-f011881d7d48f5ad529ce1b4e8da313a62526350.tar.bz2
Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r--Lib/test/test_functools.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index ee1f5db..828673c 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -312,6 +312,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):