mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Merge pull request #2879 from moreal/bugfix/unnecessary-slot-overwrite
Remove unnecessary slot wrapper addition
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user