From 9712a322f93fabbd42f86ffd08a7bbf2d4fff674 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Thu, 28 Oct 2021 13:02:23 -0400 Subject: [PATCH] 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. --- Lib/test/test_enum.py | 4 ---- Lib/test/test_typing.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index ee84a1dbf..4936af042 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -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 diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 8e383ab80..be26f4d85 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -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)