Skip to content

Commit 9d99ea9

Browse files
authored
Merge pull request RustPython#2879 from moreal/bugfix/unnecessary-slot-overwrite
Remove unnecessary slot wrapper addition
2 parents 61bae9a + 597771d commit 9d99ea9

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

Lib/test/test_enum.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,8 +1698,6 @@ class Test(Base):
16981698
test = 1
16991699
self.assertEqual(Test.test.test, 'dynamic')
17001700

1701-
# TODO: RUSTPYTHON
1702-
@unittest.expectedFailure
17031701
def test_no_duplicates(self):
17041702
class UniqueEnum(Enum):
17051703
def __init__(self, *args):

vm/src/builtins/pytype.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,6 @@ impl PyType {
467467
let typ = new(metatype, name.as_str(), base, bases, attributes, slots)
468468
.map_err(|e| vm.new_type_error(e))?;
469469

470-
vm.ctx.add_slot_wrappers(&typ);
471-
472470
// avoid deadlock
473471
let attributes = typ
474472
.attributes

0 commit comments

Comments
 (0)