diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-27 18:04:26 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-27 18:04:26 (GMT) |
commit | f011881d7d48f5ad529ce1b4e8da313a62526350 (patch) | |
tree | df8d5813abaea34519d7fbc72f108c1e7f3d7384 /Lib/test/test_functools.py | |
parent | ef0a44c629b84036edee5b4513159299993a7524 (diff) | |
parent | 26f116651030c77c93f0a98026baf7812963a30c (diff) | |
download | cpython-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.py | 1 |
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): |