summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-28 11:26:25 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-28 11:26:25 (GMT)
commita4fdd599e25f703259c42c2b74d0a6316875bfcf (patch)
treeec94c16e1763e53f6e457c68e1e68a0a6c4c81d7 /Lib/test/test_functools.py
parent26f116651030c77c93f0a98026baf7812963a30c (diff)
parent8e0ae2a4f08bc01b18ba46cbebab78ac9f0c00a6 (diff)
downloadcpython-a4fdd599e25f703259c42c2b74d0a6316875bfcf.zip
cpython-a4fdd599e25f703259c42c2b74d0a6316875bfcf.tar.gz
cpython-a4fdd599e25f703259c42c2b74d0a6316875bfcf.tar.bz2
Fix skip conditions in some docstings tests.
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r--Lib/test/test_functools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index 47b3df8..35e39b5 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -321,7 +321,7 @@ class TestWraps(TestUpdateWrapper):
self.assertEqual(wrapper.__qualname__, f.__qualname__)
self.assertEqual(wrapper.attr, 'This is also a test')
- @unittest.skipIf(not sys.flags.optimize <= 1,
+ @unittest.skipIf(sys.flags.optimize >= 2,
"Docstrings are omitted with -O2 and above")
def test_default_update_doc(self):
wrapper, _ = self._default_update()