summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_property.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-01-28 11:25:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-01-28 11:25:44 (GMT)
commit8e0ae2a4f08bc01b18ba46cbebab78ac9f0c00a6 (patch)
tree599c91df1a147ea38c51bd92033aa34c38dc30de /Lib/test/test_property.py
parent9d0add0c7e513a92ee4321aa5be70121c4c1e1e7 (diff)
downloadcpython-8e0ae2a4f08bc01b18ba46cbebab78ac9f0c00a6.zip
cpython-8e0ae2a4f08bc01b18ba46cbebab78ac9f0c00a6.tar.gz
cpython-8e0ae2a4f08bc01b18ba46cbebab78ac9f0c00a6.tar.bz2
Fix skip conditions in some docstings tests.
Diffstat (limited to 'Lib/test/test_property.py')
-rw-r--r--Lib/test/test_property.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_property.py b/Lib/test/test_property.py
index cc6a872..b58270f 100644
--- a/Lib/test/test_property.py
+++ b/Lib/test/test_property.py
@@ -163,7 +163,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):
@@ -196,7 +196,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):