Skip to content

Commit b920ff8

Browse files
committed
unmark working tests
1 parent 8a0bf1b commit b920ff8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Lib/test/test_typing.py

-12
Original file line numberDiff line numberDiff line change
@@ -2981,8 +2981,6 @@ class HasCallProtocol(Protocol):
29812981

29822982

29832983
class ProtocolTests(BaseTestCase):
2984-
# TODO: RUSTPYTHON
2985-
@unittest.expectedFailure
29862984
def test_basic_protocol(self):
29872985
@runtime_checkable
29882986
class P(Protocol):
@@ -3071,8 +3069,6 @@ def f():
30713069
for thing in (object(), 1, (), typing, f):
30723070
self.assertIsInstance(thing, Empty)
30733071

3074-
# TODO: RUSTPYTHON
3075-
@unittest.expectedFailure
30763072
def test_function_implements_protocol(self):
30773073
def f():
30783074
pass
@@ -3163,8 +3159,6 @@ class C(P): pass
31633159
self.assertIsInstance(c, C)
31643160
self.assertEqual(c.x, 1)
31653161

3166-
# TODO: RUSTPYTHON
3167-
@unittest.expectedFailure
31683162
def test_cannot_instantiate_abstract(self):
31693163
@runtime_checkable
31703164
class P(Protocol):
@@ -3183,8 +3177,6 @@ def ameth(self) -> int:
31833177
B()
31843178
self.assertIsInstance(C(), P)
31853179

3186-
# TODO: RUSTPYTHON
3187-
@unittest.expectedFailure
31883180
def test_subprotocols_extending(self):
31893181
class P1(Protocol):
31903182
def meth1(self):
@@ -3217,8 +3209,6 @@ def meth2(self):
32173209
self.assertIsInstance(C(), P2)
32183210
self.assertIsSubclass(C, P2)
32193211

3220-
# TODO: RUSTPYTHON
3221-
@unittest.expectedFailure
32223212
def test_subprotocols_merging(self):
32233213
class P1(Protocol):
32243214
def meth1(self):
@@ -3316,8 +3306,6 @@ def x(self): ...
33163306
issubclass(1, BadPG)
33173307

33183308

3319-
# TODO: RUSTPYTHON
3320-
@unittest.expectedFailure
33213309
def test_implicit_issubclass_between_two_protocols(self):
33223310
@runtime_checkable
33233311
class CallableMembersProto(Protocol):

0 commit comments

Comments
 (0)