Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Lib/test/test_builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2434,7 +2434,6 @@ def test_bool_notimplemented(self):
with self.assertRaisesRegex(TypeError, msg):
not NotImplemented

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: TypeError not raised
def test_singleton_attribute_access(self):
for singleton in (NotImplemented, Ellipsis):
with self.subTest(singleton):
Expand Down
2 changes: 1 addition & 1 deletion crates/vm/src/builtins/singletons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Constructor for PyNotImplemented {
}
}

#[pyclass(with(Constructor, AsNumber, Representable))]
#[pyclass(with(Constructor, AsNumber, Representable), flags(IMMUTABLETYPE))]
impl PyNotImplemented {
#[pymethod]
fn __reduce__(&self, vm: &VirtualMachine) -> PyStrRef {
Expand Down
2 changes: 1 addition & 1 deletion crates/vm/src/builtins/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl Constructor for PyEllipsis {
}
}

#[pyclass(with(Constructor, Representable))]
#[pyclass(with(Constructor, Representable), flags(IMMUTABLETYPE))]
impl PyEllipsis {
#[pymethod]
fn __reduce__(&self, vm: &VirtualMachine) -> PyStrRef {
Expand Down
Loading