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:
Daniel Watkins authored and Jeong Yunwon committed 2022-04-16 00:38:12 +09:00
1 parent 2960ebc0d1
commit 9712a322f9
2 files changed
-8

No files matched your search

-4
View File
@@ -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
-4
View File
@@ -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)