Merge pull request #2879 from moreal/bugfix/unnecessary-slot-overwrite

Remove unnecessary slot wrapper addition
This commit is contained in:
Jeong YunWon
2021-08-14 16:14:39 +09:00
committed by GitHub
2 changed files with 0 additions and 4 deletions

View File

@@ -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):

View File

@@ -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