Skip to content

Commit

Permalink
Reduce runtime of slow test (#4946)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum authored Feb 27, 2025
1 parent fe2d7f8 commit 1ced0a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/mappingproxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ mod tests {
#[test]
fn iter_mappingproxy_nosegv() {
Python::with_gil(|py| {
const LEN: usize = 10_000_000;
const LEN: usize = 1_000;
let items = (0..LEN as u64).map(|i| (i, i * 2));

let dict = items.clone().into_py_dict(py).unwrap();
Expand All @@ -551,7 +551,7 @@ mod tests {
let i: u64 = k.extract().unwrap();
sum += i;
}
assert_eq!(sum, 49_999_995_000_000);
assert_eq!(sum, 499_500);
})
}
}

0 comments on commit 1ced0a3

Please sign in to comment.