summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-28 11:24:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-28 11:24:01 (GMT)
commit80a0a1e170be079aeafd0ac4d113adbcb5fa6f18 (patch)
tree8f11f4e18c0a8b3b55283c8aa2379b8e7f52acac /Lib/test/test_functools.py
parentd7797c6e7a890712ff4597275e48e2d7e66396bd (diff)
downloadcpython-80a0a1e170be079aeafd0ac4d113adbcb5fa6f18.zip
cpython-80a0a1e170be079aeafd0ac4d113adbcb5fa6f18.tar.gz
cpython-80a0a1e170be079aeafd0ac4d113adbcb5fa6f18.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 af19ef7..562cb82 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -259,7 +259,7 @@ class TestWraps(TestUpdateWrapper):
self.assertEqual(wrapper.__name__, 'f')
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()