Skip to content

Commit 1ced0a3

Browse files
authored
Reduce runtime of slow test (#4946)
1 parent fe2d7f8 commit 1ced0a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/mappingproxy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ mod tests {
539539
#[test]
540540
fn iter_mappingproxy_nosegv() {
541541
Python::with_gil(|py| {
542-
const LEN: usize = 10_000_000;
542+
const LEN: usize = 1_000;
543543
let items = (0..LEN as u64).map(|i| (i, i * 2));
544544

545545
let dict = items.clone().into_py_dict(py).unwrap();
@@ -551,7 +551,7 @@ mod tests {
551551
let i: u64 = k.extract().unwrap();
552552
sum += i;
553553
}
554-
assert_eq!(sum, 49_999_995_000_000);
554+
assert_eq!(sum, 499_500);
555555
})
556556
}
557557
}

0 commit comments

Comments
 (0)