more tests passing

This commit is contained in:
Chris Moradi committed 2021-11-13 19:26:10 -08:00
1 parent 0500aa1e59
commit 868b680305
4 files changed
-21

No files matched your search

-9
View File
@@ -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):
-2
View File
@@ -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
-2
View File
@@ -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)
-8
View File
@@ -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()