mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Remove a few expectedFailures from test_types.py
This commit is contained in:
1 file changed
-12
@@ -827,8 +827,6 @@ class ClassCreationTests(unittest.TestCase):
|
||||
C = types.new_class("C", (int,))
|
||||
self.assertTrue(issubclass(C, int))
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_new_class_meta(self):
|
||||
Meta = self.Meta
|
||||
settings = {"metaclass": Meta, "z": 2}
|
||||
@@ -839,8 +837,6 @@ class ClassCreationTests(unittest.TestCase):
|
||||
self.assertEqual(C.y, 1)
|
||||
self.assertEqual(C.z, 2)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_new_class_exec_body(self):
|
||||
Meta = self.Meta
|
||||
def func(ns):
|
||||
@@ -866,8 +862,6 @@ class ClassCreationTests(unittest.TestCase):
|
||||
self.assertEqual(C.__name__, "C")
|
||||
self.assertEqual(C.__bases__, (object,))
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_new_class_meta_with_base(self):
|
||||
Meta = self.Meta
|
||||
def func(ns):
|
||||
@@ -1010,8 +1004,6 @@ class ClassCreationTests(unittest.TestCase):
|
||||
for bases in [x, y, z, t]:
|
||||
self.assertIs(types.resolve_bases(bases), bases)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_metaclass_derivation(self):
|
||||
# issue1294232: correct metaclass calculation
|
||||
new_calls = [] # to check the order of __new__ calls
|
||||
@@ -1066,8 +1058,6 @@ class ClassCreationTests(unittest.TestCase):
|
||||
new_calls.clear()
|
||||
self.assertIn('BMeta_was_here', E.__dict__)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_metaclass_override_function(self):
|
||||
# Special case: the given metaclass isn't a class,
|
||||
# so there is no metaclass calculation.
|
||||
@@ -1469,8 +1459,6 @@ class CoroutineTests(unittest.TestCase):
|
||||
self.assertIs(foo(), coro)
|
||||
self.assertIs(foo().__await__(), coro)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_duck_gen(self):
|
||||
class GenLike:
|
||||
def send(self): pass
|
||||
|
||||
Reference in new issue
Block a user