mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Lib/test: remove expectedFailure decorator from now-fixed tests
Evidently the changes to how we handle `__name__` and `__qualname__` have fixed the errors we were seeing in test_enum and test_typing.
This commit is contained in:
1 parent
2960ebc0d1
commit
9712a322f9
2 files changed
-8
No files matched your search
Vendored
-4
@@ -749,16 +749,12 @@ class TestEnum(unittest.TestCase):
|
||||
test_pickle_dump_load(self.assertIs, FloatStooges.CURLY)
|
||||
test_pickle_dump_load(self.assertIs, FloatStooges)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_pickle_enum_function(self):
|
||||
if isinstance(Answer, Exception):
|
||||
raise Answer
|
||||
test_pickle_dump_load(self.assertIs, Answer.him)
|
||||
test_pickle_dump_load(self.assertIs, Answer)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_pickle_enum_function_with_module(self):
|
||||
if isinstance(Question, Exception):
|
||||
raise Question
|
||||
|
||||
Vendored
-4
@@ -1115,8 +1115,6 @@ class ProtocolTests(BaseTestCase):
|
||||
with self.assertRaises(TypeError):
|
||||
isinstance(C(), BadPG)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_protocols_isinstance_py36(self):
|
||||
class APoint:
|
||||
def __init__(self, x, y, label):
|
||||
@@ -4257,8 +4255,6 @@ class TypedDictTests(BaseTestCase):
|
||||
other = LabelPoint2D(x=0, y=1, label='hi')
|
||||
self.assertEqual(other['label'], 'hi')
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_pickle(self):
|
||||
global EmpD # pickle wants to reference the class by name
|
||||
EmpD = TypedDict('EmpD', name=str, id=int)
|
||||
|
||||
Reference in new issue
Block a user