MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_reduce_with_kwargs

Method test_reduce_with_kwargs

Lib/test/test_functools.py:1083–1087  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1081 reduce = staticmethod(py_functools.reduce)
1082
1083 def test_reduce_with_kwargs(self):
1084 with self.assertWarns(DeprecationWarning):
1085 self.reduce(function=lambda x, y: x + y, sequence=[1, 2, 3, 4, 5], initial=1)
1086 with self.assertWarns(DeprecationWarning):
1087 self.reduce(lambda x, y: x + y, sequence=[1, 2, 3, 4, 5], initial=1)
1088
1089
1090class TestCmpToKey:

Callers

nothing calls this directly

Calls 2

assertWarnsMethod · 0.80
reduceMethod · 0.45

Tested by

no test coverage detected