Skip to content

Commit 868b680

Browse files
committed
more tests passing
1 parent 0500aa1 commit 868b680

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

Lib/test/test_abc.py

-9
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
def test_factory(abc_ABCMeta, abc_get_cache_token):
1616
class TestLegacyAPI(unittest.TestCase):
1717

18-
# TODO: RUSTPYTHON
19-
@unittest.expectedFailure
2018
def test_abstractproperty_basics(self):
2119
@abc.abstractproperty
2220
def foo(self): pass
@@ -34,8 +32,6 @@ def foo(self): return super().foo
3432
self.assertEqual(D().foo, 3)
3533
self.assertFalse(getattr(D.foo, "__isabstractmethod__", False))
3634

37-
# TODO: RUSTPYTHON
38-
@unittest.expectedFailure
3935
def test_abstractclassmethod_basics(self):
4036
@abc.abstractclassmethod
4137
def foo(cls): pass
@@ -54,8 +50,6 @@ def foo(cls): return super().foo()
5450
self.assertEqual(D.foo(), 'D')
5551
self.assertEqual(D().foo(), 'D')
5652

57-
# TODO: RUSTPYTHON
58-
@unittest.expectedFailure
5953
def test_abstractstaticmethod_basics(self):
6054
@abc.abstractstaticmethod
6155
def foo(): pass
@@ -225,9 +219,6 @@ def bar(self):
225219
bar.__isabstractmethod__ = NotBool()
226220
foo = property(bar)
227221

228-
229-
# TODO: RUSTPYTHON
230-
@unittest.expectedFailure
231222
def test_customdescriptors_with_abstractmethod(self):
232223
class Descriptor:
233224
def __init__(self, fget, fset=None):

Lib/test/test_contextlib.py

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ def __exit__(self, *args):
2020
manager = DefaultEnter()
2121
self.assertIs(manager.__enter__(), manager)
2222

23-
# TODO: RUSTPYTHON
24-
@unittest.expectedFailure
2523
def test_exit_is_abstract(self):
2624
class MissingExit(AbstractContextManager):
2725
pass

Lib/test/test_dynamicclassattribute.py

-2
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ def foo(self):
167167
foo.__isabstractmethod__ = NotBool()
168168
foo = DynamicClassAttribute(foo)
169169

170-
# TODO: RUSTPYTHON
171-
@unittest.expectedFailure
172170
def test_abstract_virtual(self):
173171
self.assertRaises(TypeError, ClassWithAbstractVirtualProperty)
174172
self.assertRaises(TypeError, ClassWithPropertyAbstractVirtual)

Lib/test/test_typing.py

-8
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,6 @@ def test_eq_hash(self):
438438
self.assertNotEqual(Callable[[int], int], Callable[[], int])
439439
self.assertNotEqual(Callable[[int], int], Callable)
440440

441-
# TODO: RUSTPYTHON
442-
@unittest.expectedFailure
443441
def test_cannot_instantiate(self):
444442
with self.assertRaises(TypeError):
445443
Callable()
@@ -741,8 +739,6 @@ class CG(PG[T]): pass
741739

742740
self.assertIsInstance(CG[int](), CG)
743741

744-
# TODO: RUSTPYTHON
745-
@unittest.expectedFailure
746742
def test_cannot_instantiate_abstract(self):
747743
@runtime_checkable
748744
class P(Protocol):
@@ -3291,8 +3287,6 @@ def foo():
32913287
g = foo()
32923288
self.assertIsSubclass(type(g), typing.Generator)
32933289

3294-
# TODO: RUSTPYTHON
3295-
@unittest.expectedFailure
32963290
def test_no_generator_instantiation(self):
32973291
with self.assertRaises(TypeError):
32983292
typing.Generator()
@@ -3308,8 +3302,6 @@ def test_async_generator(self):
33083302
g = ns['f']()
33093303
self.assertIsSubclass(type(g), typing.AsyncGenerator)
33103304

3311-
# TODO: RUSTPYTHON
3312-
@unittest.expectedFailure
33133305
def test_no_async_generator_instantiation(self):
33143306
with self.assertRaises(TypeError):
33153307
typing.AsyncGenerator()

0 commit comments

Comments
 (0)