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_property.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_property.py')
-rw-r--r-- | Lib/test/test_property.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_property.py b/Lib/test/test_property.py index 726d6fe..96eeb88 100644 --- a/Lib/test/test_property.py +++ b/Lib/test/test_property.py @@ -186,7 +186,7 @@ class PropertySubclassTests(unittest.TestCase): Foo.spam.__doc__, "spam wrapped in property subclass") - @unittest.skipIf(sys.flags.optimize <= 2, + @unittest.skipIf(sys.flags.optimize >= 2, "Docstrings are omitted with -O2 and above") def test_property_setter_copies_getter_docstring(self): class Foo(object): @@ -219,7 +219,7 @@ class PropertySubclassTests(unittest.TestCase): FooSub.spam.__doc__, "spam wrapped in property subclass") - @unittest.skipIf(sys.flags.optimize <= 2, + @unittest.skipIf(sys.flags.optimize >= 2, "Docstrings are omitted with -O2 and above") def test_property_new_getter_new_docstring(self): |