diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-28 11:26:25 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-28 11:26:25 (GMT) |
commit | a4fdd599e25f703259c42c2b74d0a6316875bfcf (patch) | |
tree | ec94c16e1763e53f6e457c68e1e68a0a6c4c81d7 /Lib/test/test_functools.py | |
parent | 26f116651030c77c93f0a98026baf7812963a30c (diff) | |
parent | 8e0ae2a4f08bc01b18ba46cbebab78ac9f0c00a6 (diff) | |
download | cpython-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.py | 2 |
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() |