From ecf787713e9ce6391746cf8d4307184b201dbc80 Mon Sep 17 00:00:00 2001 From: Moreal Date: Sat, 14 Aug 2021 13:17:43 +0900 Subject: [PATCH 1/2] Remove unnecessary slot wrapper overwriting --- vm/src/builtins/pytype.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/vm/src/builtins/pytype.rs b/vm/src/builtins/pytype.rs index 48c1b9c2e..77e1e195c 100644 --- a/vm/src/builtins/pytype.rs +++ b/vm/src/builtins/pytype.rs @@ -467,8 +467,6 @@ impl PyType { let typ = new(metatype, name.as_str(), base, bases, attributes, slots) .map_err(|e| vm.new_type_error(e))?; - vm.ctx.add_slot_wrappers(&typ); - // avoid deadlock let attributes = typ .attributes From 597771d16e9f8ce7431334be5aa0767cb2d78863 Mon Sep 17 00:00:00 2001 From: Moreal Date: Sat, 14 Aug 2021 15:25:26 +0900 Subject: [PATCH 2/2] Unmark fixed tests --- Lib/test/test_enum.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index bd41ca3ad..f50b84253 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -1698,8 +1698,6 @@ class TestEnum(unittest.TestCase): test = 1 self.assertEqual(Test.test.test, 'dynamic') - # TODO: RUSTPYTHON - @unittest.expectedFailure def test_no_duplicates(self): class UniqueEnum(Enum): def __init__(self, *args):