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
2 changes: 0 additions & 2 deletions Lib/test/test_hashlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,6 @@ def test_hash_disallow_instantiation(self):
support.check_disallow_instantiation(self, HASH)
support.check_disallow_instantiation(self, HASHXOF)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_readonly_types(self):
for algorithm, constructors in self.constructors_to_test.items():
# all other types have DISALLOW_INSTANTIATION
Expand Down
4 changes: 2 additions & 2 deletions crates/stdlib/src/hashlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub mod _hashlib {
}
}

#[pyclass(with(Representable))]
#[pyclass(with(Representable), flags(IMMUTABLETYPE))]
impl PyHasher {
fn new(name: &str, d: HashWrapper) -> Self {
Self {
Expand Down Expand Up @@ -176,7 +176,7 @@ pub mod _hashlib {
}
}

#[pyclass]
#[pyclass(flags(IMMUTABLETYPE))]
impl PyHasherXof {
fn new(name: &str, d: HashXofWrapper) -> Self {
Self {
Expand Down
Loading