Skip to content

Commit d6aeb8f

Browse files
committed
Remove expectedFailure
1 parent af7f179 commit d6aeb8f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Lib/test/test_types.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,6 @@ def test_instancecheck_and_subclasscheck(self):
742742
self.assertTrue(issubclass(dict, x))
743743
self.assertFalse(issubclass(list, x))
744744

745-
# TODO: RUSTPYTHON
746-
@unittest.expectedFailure
747745
def test_instancecheck_and_subclasscheck_order(self):
748746
T = typing.TypeVar('T')
749747

@@ -790,17 +788,13 @@ def __subclasscheck__(cls, sub):
790788
self.assertTrue(issubclass(int, x))
791789
self.assertRaises(ZeroDivisionError, issubclass, list, x)
792790

793-
# TODO: RUSTPYTHON
794-
@unittest.expectedFailure
795791
def test_or_type_operator_with_TypeVar(self):
796792
TV = typing.TypeVar('T')
797793
assert TV | str == typing.Union[TV, str]
798794
assert str | TV == typing.Union[str, TV]
799795
self.assertIs((int | TV)[int], int)
800796
self.assertIs((TV | int)[int], int)
801797

802-
# TODO: RUSTPYTHON
803-
@unittest.expectedFailure
804798
def test_union_args(self):
805799
def check(arg, expected):
806800
clear_typing_caches()
@@ -893,16 +887,12 @@ def test_union_copy(self):
893887
self.assertEqual(copied.__args__, orig.__args__)
894888
self.assertEqual(copied.__parameters__, orig.__parameters__)
895889

896-
# TODO: RUSTPYTHON
897-
@unittest.expectedFailure
898890
def test_union_parameter_substitution_errors(self):
899891
T = typing.TypeVar("T")
900892
x = int | T
901893
with self.assertRaises(TypeError):
902894
x[int, str]
903895

904-
# TODO: RUSTPYTHON
905-
@unittest.expectedFailure
906896
def test_or_type_operator_with_forward(self):
907897
T = typing.TypeVar('T')
908898
ForwardAfter = T | 'Forward'

0 commit comments

Comments
 (0)