@@ -100,32 +100,24 @@ def test_property_decorator_subclass(self):
100
100
self .assertRaises (PropertySet , setattr , sub , "spam" , None )
101
101
self .assertRaises (PropertyDel , delattr , sub , "spam" )
102
102
103
- # TODO: RUSTPYTHON
104
- @unittest .expectedFailure
105
103
@unittest .skipIf (sys .flags .optimize >= 2 ,
106
104
"Docstrings are omitted with -O2 and above" )
107
105
def test_property_decorator_subclass_doc (self ):
108
106
sub = SubClass ()
109
107
self .assertEqual (sub .__class__ .spam .__doc__ , "SubClass.getter" )
110
108
111
- # TODO: RUSTPYTHON
112
- @unittest .expectedFailure
113
109
@unittest .skipIf (sys .flags .optimize >= 2 ,
114
110
"Docstrings are omitted with -O2 and above" )
115
111
def test_property_decorator_baseclass_doc (self ):
116
112
base = BaseClass ()
117
113
self .assertEqual (base .__class__ .spam .__doc__ , "BaseClass.getter" )
118
114
119
- # TODO: RUSTPYTHON
120
- @unittest .expectedFailure
121
115
def test_property_decorator_doc (self ):
122
116
base = PropertyDocBase ()
123
117
sub = PropertyDocSub ()
124
118
self .assertEqual (base .__class__ .spam .__doc__ , "spam spam spam" )
125
119
self .assertEqual (sub .__class__ .spam .__doc__ , "spam spam spam" )
126
120
127
- # TODO: RUSTPYTHON
128
- @unittest .expectedFailure
129
121
@unittest .skipIf (sys .flags .optimize >= 2 ,
130
122
"Docstrings are omitted with -O2 and above" )
131
123
def test_property_getter_doc_override (self ):
@@ -136,8 +128,6 @@ def test_property_getter_doc_override(self):
136
128
self .assertEqual (newgetter .spam , 8 )
137
129
self .assertEqual (newgetter .__class__ .spam .__doc__ , "new docstring" )
138
130
139
- # TODO: RUSTPYTHON
140
- @unittest .expectedFailure
141
131
def test_property___isabstractmethod__descriptor (self ):
142
132
for val in (True , False , [], [1 ], '' , '1' ):
143
133
class C (object ):
@@ -169,8 +159,6 @@ def test_property_builtin_doc_writable(self):
169
159
p .__doc__ = 'extended'
170
160
self .assertEqual (p .__doc__ , 'extended' )
171
161
172
- # TODO: RUSTPYTHON
173
- @unittest .expectedFailure
174
162
@unittest .skipIf (sys .flags .optimize >= 2 ,
175
163
"Docstrings are omitted with -O2 and above" )
176
164
def test_property_decorator_doc_writable (self ):
@@ -268,8 +256,6 @@ def spam(self):
268
256
else :
269
257
raise Exception ("AttributeError not raised" )
270
258
271
- # TODO: RUSTPYTHON
272
- @unittest .expectedFailure
273
259
@unittest .skipIf (sys .flags .optimize >= 2 ,
274
260
"Docstrings are omitted with -O2 and above" )
275
261
def test_docstring_copy (self ):
@@ -282,8 +268,6 @@ def spam(self):
282
268
Foo .spam .__doc__ ,
283
269
"spam wrapped in property subclass" )
284
270
285
- # TODO: RUSTPYTHON
286
- @unittest .expectedFailure
287
271
@unittest .skipIf (sys .flags .optimize >= 2 ,
288
272
"Docstrings are omitted with -O2 and above" )
289
273
def test_property_setter_copies_getter_docstring (self ):
@@ -317,8 +301,6 @@ def spam(self, value):
317
301
FooSub .spam .__doc__ ,
318
302
"spam wrapped in property subclass" )
319
303
320
- # TODO: RUSTPYTHON
321
- @unittest .expectedFailure
322
304
@unittest .skipIf (sys .flags .optimize >= 2 ,
323
305
"Docstrings are omitted with -O2 and above" )
324
306
def test_property_new_getter_new_docstring (self ):
@@ -358,20 +340,14 @@ def _format_exc_msg(self, msg):
358
340
def setUpClass (cls ):
359
341
cls .obj = cls .cls ()
360
342
361
- # TODO: RUSTPYTHON
362
- @unittest .expectedFailure
363
343
def test_get_property (self ):
364
344
with self .assertRaisesRegex (AttributeError , self ._format_exc_msg ("has no getter" )):
365
345
self .obj .foo
366
346
367
- # TODO: RUSTPYTHON
368
- @unittest .expectedFailure
369
347
def test_set_property (self ):
370
348
with self .assertRaisesRegex (AttributeError , self ._format_exc_msg ("has no setter" )):
371
349
self .obj .foo = None
372
350
373
- # TODO: RUSTPYTHON
374
- @unittest .expectedFailure
375
351
def test_del_property (self ):
376
352
with self .assertRaisesRegex (AttributeError , self ._format_exc_msg ("has no deleter" )):
377
353
del self .obj .foo
0 commit comments