Skip to content

Commit 0de70f9

Browse files
committed
Pass ctx to pypayload::class, mark passing test.
1 parent 77cb306 commit 0de70f9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Lib/test/test_itertools.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,8 +1694,6 @@ class TestExamples(unittest.TestCase):
16941694
def test_accumulate(self):
16951695
self.assertEqual(list(accumulate([1,2,3,4,5])), [1, 3, 6, 10, 15])
16961696

1697-
# TODO: RUSTPYTHON
1698-
@unittest.expectedFailure
16991697
def test_accumulate_reducible(self):
17001698
# check copy, deepcopy, pickle
17011699
data = [1, 2, 3, 4, 5]

vm/src/stdlib/itertools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ mod decl {
11281128
acc_value: PyRwLock::new(None),
11291129
};
11301130
let tup = vm.new_tuple((acc, 1, None::<PyObjectRef>));
1131-
let islice_cls = PyItertoolsIslice::class(vm).to_owned();
1131+
let islice_cls = PyItertoolsIslice::class(&vm.ctx).to_owned();
11321132
return vm.new_tuple((islice_cls, tup))
11331133
}
11341134
_ => {},

0 commit comments

Comments
 (0)