mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix skip conditions in some docstings tests.
This commit is contained in:
parent
9d0add0c7e
commit
8e0ae2a4f0
2 changed files with 3 additions and 3 deletions
|
@ -317,7 +317,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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue