We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f14694b commit 3daa505Copy full SHA for 3daa505
unittests/test_itertools.py
@@ -34,6 +34,7 @@ async def reduction(x, y):
34
35
@sync
36
async def test_accumulate_default():
37
+ """Test the default function of accumulate"""
38
for itertype in (asyncify, list):
39
assert await a.list(a.accumulate(itertype([0, 1]))) == list(
40
itertools.accumulate([0, 1])
@@ -53,6 +54,7 @@ async def test_accumulate_default():
53
54
55
56
async def test_accumulate_misuse():
57
+ """Test wrong arguments to accumulate"""
58
with pytest.raises(TypeError):
59
assert await a.list(a.accumulate([]))
60
0 commit comments