File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ def test_default_update(self):
321321 self .assertEqual (wrapper .__qualname__ , f .__qualname__ )
322322 self .assertEqual (wrapper .attr , 'This is also a test' )
323323
324- @unittest .skipIf (not sys .flags .optimize <= 1 ,
324+ @unittest .skipIf (sys .flags .optimize >= 2 ,
325325 "Docstrings are omitted with -O2 and above" )
326326 def test_default_update_doc (self ):
327327 wrapper , _ = self ._default_update ()
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ def spam(self):
186186 Foo .spam .__doc__ ,
187187 "spam wrapped in property subclass" )
188188
189- @unittest .skipIf (sys .flags .optimize < = 2 ,
189+ @unittest .skipIf (sys .flags .optimize > = 2 ,
190190 "Docstrings are omitted with -O2 and above" )
191191 def test_property_setter_copies_getter_docstring (self ):
192192 class Foo (object ):
@@ -219,7 +219,7 @@ def spam(self, value):
219219 FooSub .spam .__doc__ ,
220220 "spam wrapped in property subclass" )
221221
222- @unittest .skipIf (sys .flags .optimize < = 2 ,
222+ @unittest .skipIf (sys .flags .optimize > = 2 ,
223223 "Docstrings are omitted with -O2 and above" )
224224 def test_property_new_getter_new_docstring (self ):
225225
You can’t perform that action at this time.
0 commit comments