diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-28 11:24:01 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-28 11:24:01 (GMT) |
| commit | 80a0a1e170be079aeafd0ac4d113adbcb5fa6f18 (patch) | |
| tree | 8f11f4e18c0a8b3b55283c8aa2379b8e7f52acac /Lib/test/test_functools.py | |
| parent | d7797c6e7a890712ff4597275e48e2d7e66396bd (diff) | |
| download | cpython-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.py | 2 |
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() |
