diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-28 11:27:02 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-28 11:27:02 (GMT) |
| commit | 238a617581af985490bd5e4866502dd4c98c27ab (patch) | |
| tree | 23f316530a8e47106e63abf5a9017e40cc87dffa | |
| parent | a66c2eec5054cfaba633df839f9d948ab543bb74 (diff) | |
| parent | a4fdd599e25f703259c42c2b74d0a6316875bfcf (diff) | |
| download | cpython-238a617581af985490bd5e4866502dd4c98c27ab.zip cpython-238a617581af985490bd5e4866502dd4c98c27ab.tar.gz cpython-238a617581af985490bd5e4866502dd4c98c27ab.tar.bz2 | |
Fix skip conditions in some docstings tests.
| -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): |
