diff --git a/Lib/test/test_abc.py b/Lib/test/test_abc.py index 2e40a056e..5b897ba8c 100644 --- a/Lib/test/test_abc.py +++ b/Lib/test/test_abc.py @@ -15,8 +15,6 @@ from inspect import isabstract def test_factory(abc_ABCMeta, abc_get_cache_token): class TestLegacyAPI(unittest.TestCase): - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_abstractproperty_basics(self): @abc.abstractproperty def foo(self): pass @@ -34,8 +32,6 @@ def test_factory(abc_ABCMeta, abc_get_cache_token): self.assertEqual(D().foo, 3) self.assertFalse(getattr(D.foo, "__isabstractmethod__", False)) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_abstractclassmethod_basics(self): @abc.abstractclassmethod def foo(cls): pass @@ -54,8 +50,6 @@ def test_factory(abc_ABCMeta, abc_get_cache_token): self.assertEqual(D.foo(), 'D') self.assertEqual(D().foo(), 'D') - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_abstractstaticmethod_basics(self): @abc.abstractstaticmethod def foo(): pass @@ -225,9 +219,6 @@ def test_factory(abc_ABCMeta, abc_get_cache_token): bar.__isabstractmethod__ = NotBool() foo = property(bar) - - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_customdescriptors_with_abstractmethod(self): class Descriptor: def __init__(self, fget, fset=None): diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py index 90ea50105..aaa4a5b70 100644 --- a/Lib/test/test_contextlib.py +++ b/Lib/test/test_contextlib.py @@ -20,8 +20,6 @@ class TestAbstractContextManager(unittest.TestCase): manager = DefaultEnter() self.assertIs(manager.__enter__(), manager) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_exit_is_abstract(self): class MissingExit(AbstractContextManager): pass diff --git a/Lib/test/test_dynamicclassattribute.py b/Lib/test/test_dynamicclassattribute.py index c81145881..9f694d9eb 100644 --- a/Lib/test/test_dynamicclassattribute.py +++ b/Lib/test/test_dynamicclassattribute.py @@ -167,8 +167,6 @@ class PropertyTests(unittest.TestCase): foo.__isabstractmethod__ = NotBool() foo = DynamicClassAttribute(foo) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_abstract_virtual(self): self.assertRaises(TypeError, ClassWithAbstractVirtualProperty) self.assertRaises(TypeError, ClassWithPropertyAbstractVirtual) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index f2f651214..45f3480ad 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -438,8 +438,6 @@ class CallableTests(BaseTestCase): self.assertNotEqual(Callable[[int], int], Callable[[], int]) self.assertNotEqual(Callable[[int], int], Callable) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_cannot_instantiate(self): with self.assertRaises(TypeError): Callable() @@ -741,8 +739,6 @@ class ProtocolTests(BaseTestCase): self.assertIsInstance(CG[int](), CG) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_cannot_instantiate_abstract(self): @runtime_checkable class P(Protocol): @@ -3291,8 +3287,6 @@ class CollectionsAbcTests(BaseTestCase): g = foo() self.assertIsSubclass(type(g), typing.Generator) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_no_generator_instantiation(self): with self.assertRaises(TypeError): typing.Generator() @@ -3308,8 +3302,6 @@ class CollectionsAbcTests(BaseTestCase): g = ns['f']() self.assertIsSubclass(type(g), typing.AsyncGenerator) - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_no_async_generator_instantiation(self): with self.assertRaises(TypeError): typing.AsyncGenerator()