From d6a8e6d23494b4f77748cb8aa0cd30e4a61f6140 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 28 Jun 2010 15:41:06 +0000 Subject: [PATCH] fix skipping condition --- Lib/test/test_property.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_property.py b/Lib/test/test_property.py index 6d6bece3d3e..e5fc1745a0f 100644 --- a/Lib/test/test_property.py +++ b/Lib/test/test_property.py @@ -118,7 +118,7 @@ class PropertyTests(unittest.TestCase): self.assertEqual(base.__class__.spam.__doc__, "spam spam spam") self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam") - @unittest.skipIf(sys.flags.optimize >= 1, + @unittest.skipIf(sys.flags.optimize >= 2, "Docstrings are omitted with -O2 and above") def test_property_getter_doc_override(self): newgettersub = PropertySubNewGetter()