@@ -88,6 +88,8 @@ def woohoo():
88
88
raise ZeroDivisionError ()
89
89
self .assertEqual (state , [1 , 42 , 999 ])
90
90
91
+ # TODO: RUSTPYTHON
92
+ @unittest .expectedFailure
91
93
def test_contextmanager_traceback (self ):
92
94
@contextmanager
93
95
def f ():
@@ -543,6 +545,8 @@ def method(self, a, b, c=None):
543
545
self .assertEqual (test .b , 2 )
544
546
545
547
548
+ # TODO: RUSTPYTHON
549
+ @unittest .expectedFailure
546
550
def test_typo_enter (self ):
547
551
class mycontext (ContextDecorator ):
548
552
def __unter__ (self ):
@@ -555,6 +559,8 @@ def __exit__(self, *exc):
555
559
pass
556
560
557
561
562
+ # TODO: RUSTPYTHON
563
+ @unittest .expectedFailure
558
564
def test_typo_exit (self ):
559
565
class mycontext (ContextDecorator ):
560
566
def __enter__ (self ):
@@ -722,6 +728,8 @@ def _exit():
722
728
result .append (2 )
723
729
self .assertEqual (result , [1 , 2 , 3 , 4 ])
724
730
731
+ # TODO: RUSTPYTHON
732
+ @unittest .expectedFailure
725
733
def test_enter_context_errors (self ):
726
734
class LacksEnterAndExit :
727
735
pass
@@ -776,6 +784,8 @@ def test_exit_suppress(self):
776
784
stack .push (lambda * exc : True )
777
785
1 / 0
778
786
787
+ # TODO: RUSTPYTHON
788
+ @unittest .expectedFailure
779
789
def test_exit_exception_traceback (self ):
780
790
# This test captures the current behavior of ExitStack so that we know
781
791
# if we ever unintendedly change it. It is not a statement of what the
@@ -889,6 +899,8 @@ def suppress_exc(*exc_details):
889
899
self .assertIsInstance (inner_exc , ValueError )
890
900
self .assertIsInstance (inner_exc .__context__ , ZeroDivisionError )
891
901
902
+ # TODO: RUSTPYTHON
903
+ @unittest .expectedFailure
892
904
def test_exit_exception_explicit_none_context (self ):
893
905
# Ensure ExitStack chaining matches actual nested `with` statements
894
906
# regarding explicit __context__ = None.
@@ -1035,6 +1047,8 @@ def test_excessive_nesting(self):
1035
1047
for i in range (10000 ):
1036
1048
stack .callback (int )
1037
1049
1050
+ # TODO: RUSTPYTHON
1051
+ @unittest .expectedFailure
1038
1052
def test_instance_bypass (self ):
1039
1053
class Example (object ): pass
1040
1054
cm = Example ()
@@ -1220,6 +1234,8 @@ def make_relative_path(self, *parts):
1220
1234
* parts ,
1221
1235
)
1222
1236
1237
+ # TODO: RUSTPYTHON
1238
+ @unittest .expectedFailure
1223
1239
def test_simple (self ):
1224
1240
old_cwd = os .getcwd ()
1225
1241
target = self .make_relative_path ('data' )
@@ -1229,6 +1245,8 @@ def test_simple(self):
1229
1245
self .assertEqual (os .getcwd (), target )
1230
1246
self .assertEqual (os .getcwd (), old_cwd )
1231
1247
1248
+ # TODO: RUSTPYTHON
1249
+ @unittest .expectedFailure
1232
1250
def test_reentrant (self ):
1233
1251
old_cwd = os .getcwd ()
1234
1252
target1 = self .make_relative_path ('data' )
@@ -1246,6 +1264,8 @@ def test_reentrant(self):
1246
1264
self .assertEqual (os .getcwd (), target1 )
1247
1265
self .assertEqual (os .getcwd (), old_cwd )
1248
1266
1267
+ # TODO: RUSTPYTHON
1268
+ @unittest .expectedFailure
1249
1269
def test_exception (self ):
1250
1270
old_cwd = os .getcwd ()
1251
1271
target = self .make_relative_path ('data' )
0 commit comments