Skip to content

Commit 5a6a6e5

Browse files
committed
too many mark.asyncio
1 parent ca10264 commit 5a6a6e5

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

streamz/tests/test_dask.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from distributed.utils_test import gen_cluster, loop, loop_in_thread, cleanup, inc, cluster, loop, slowinc # noqa: F401
1717

1818

19-
@pytest.mark.asyncio
2019
@gen_cluster(client=True)
2120
async def test_map(c, s, a, b):
2221
source = Stream(asynchronous=True)
@@ -31,7 +30,6 @@ async def test_map(c, s, a, b):
3130
assert all(isinstance(f, Future) for f in futures_L)
3231

3332

34-
@pytest.mark.asyncio
3533
@gen_cluster(client=True)
3634
async def test_map_on_dict(c, s, a, b):
3735
# dask treats dicts differently, so we have to make sure
@@ -54,7 +52,6 @@ def add_to_dict(d):
5452
assert item["i"] == i
5553

5654

57-
@pytest.mark.asyncio
5855
@gen_cluster(client=True)
5956
async def test_partition_then_scatter_async(c, s, a, b):
6057
# Ensure partition w/ timeout before scatter works correctly for
@@ -95,7 +92,6 @@ def test_partition_then_scatter_sync(loop):
9592
assert L == [1, 2, 3]
9693

9794

98-
@pytest.mark.asyncio
9995
@gen_cluster(client=True)
10096
async def test_non_unique_emit(c, s, a, b):
10197
"""Regression for https://github.com/python-streamz/streams/issues/397
@@ -114,7 +110,6 @@ async def test_non_unique_emit(c, s, a, b):
114110
assert L[0] != L[1] or L[0] != L[2]
115111

116112

117-
@pytest.mark.asyncio
118113
@gen_cluster(client=True)
119114
async def test_scan(c, s, a, b):
120115
source = Stream(asynchronous=True)
@@ -129,7 +124,6 @@ async def test_scan(c, s, a, b):
129124
assert all(isinstance(f, Future) for f in futures_L)
130125

131126

132-
@pytest.mark.asyncio
133127
@gen_cluster(client=True)
134128
async def test_scan_state(c, s, a, b):
135129
source = Stream(asynchronous=True)
@@ -145,7 +139,6 @@ def f(acc, i):
145139
assert L == [0, 1, 3]
146140

147141

148-
@pytest.mark.asyncio
149142
@gen_cluster(client=True)
150143
async def test_zip(c, s, a, b):
151144
a = Stream(asynchronous=True)
@@ -162,7 +155,6 @@ async def test_zip(c, s, a, b):
162155
assert L == [(1, 'a'), (2, 'b')]
163156

164157

165-
@pytest.mark.asyncio
166158
@gen_cluster(client=True)
167159
async def test_accumulate(c, s, a, b):
168160
source = Stream(asynchronous=True)
@@ -200,7 +192,6 @@ def test_sync_2(loop): # noqa: F811
200192
assert L == list(map(inc, range(10)))
201193

202194

203-
@pytest.mark.asyncio
204195
@gen_cluster(client=True, nthreads=[('127.0.0.1', 1)] * 2)
205196
async def test_buffer(c, s, a, b):
206197
source = Stream(asynchronous=True)
@@ -260,7 +251,6 @@ async def test_stream_shares_client_loop(loop): # noqa: F811
260251
assert source.loop is client.loop
261252

262253

263-
@pytest.mark.asyncio
264254
@gen_cluster(client=True)
265255
async def test_starmap(c, s, a, b):
266256
def add(x, y, z=0):

0 commit comments

Comments
 (0)