@@ -157,6 +157,8 @@ def foo(): return 4
157
157
self .assertEqual (D .foo (), 4 )
158
158
self .assertEqual (D ().foo (), 4 )
159
159
160
+ # TODO: RUSTPYTHON
161
+ @unittest .expectedFailure
160
162
def test_object_new_with_one_abstractmethod (self ):
161
163
class C (metaclass = abc_ABCMeta ):
162
164
@abc .abstractmethod
@@ -165,6 +167,8 @@ def method_one(self):
165
167
msg = r"class C with abstract method method_one"
166
168
self .assertRaisesRegex (TypeError , msg , C )
167
169
170
+ # TODO: RUSTPYTHON
171
+ @unittest .expectedFailure
168
172
def test_object_new_with_many_abstractmethods (self ):
169
173
class C (metaclass = abc_ABCMeta ):
170
174
@abc .abstractmethod
@@ -176,6 +180,8 @@ def method_two(self):
176
180
msg = r"class C with abstract methods method_one, method_two"
177
181
self .assertRaisesRegex (TypeError , msg , C )
178
182
183
+ # TODO: RUSTPYTHON
184
+ @unittest .expectedFailure
179
185
def test_abstractmethod_integration (self ):
180
186
for abstractthing in [abc .abstractmethod , abc .abstractproperty ,
181
187
abc .abstractclassmethod ,
@@ -531,7 +537,8 @@ def foo(self):
531
537
self .assertEqual (A .__abstractmethods__ , set ())
532
538
A ()
533
539
534
-
540
+ # TODO: RUSTPYTHON
541
+ @unittest .expectedFailure
535
542
def test_update_new_abstractmethods (self ):
536
543
class A (metaclass = abc_ABCMeta ):
537
544
@abc .abstractmethod
@@ -548,6 +555,8 @@ def updated_foo(self):
548
555
msg = "class A with abstract methods bar, foo"
549
556
self .assertRaisesRegex (TypeError , msg , A )
550
557
558
+ # TODO: RUSTPYTHON
559
+ @unittest .expectedFailure
551
560
def test_update_implementation (self ):
552
561
class A (metaclass = abc_ABCMeta ):
553
562
@abc .abstractmethod
@@ -599,6 +608,8 @@ def updated_foo(self):
599
608
A ()
600
609
self .assertFalse (hasattr (A , '__abstractmethods__' ))
601
610
611
+ # TODO: RUSTPYTHON
612
+ @unittest .expectedFailure
602
613
def test_update_del_implementation (self ):
603
614
class A (metaclass = abc_ABCMeta ):
604
615
@abc .abstractmethod
@@ -618,6 +629,8 @@ def foo(self):
618
629
msg = "class B with abstract method foo"
619
630
self .assertRaisesRegex (TypeError , msg , B )
620
631
632
+ # TODO: RUSTPYTHON
633
+ @unittest .expectedFailure
621
634
def test_update_layered_implementation (self ):
622
635
class A (metaclass = abc_ABCMeta ):
623
636
@abc .abstractmethod
0 commit comments