1616from 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 )
2120async 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 )
3634async 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 )
5956async 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 )
10096async 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 )
119114async 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 )
134128async 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 )
150143async 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 )
167159async 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 )
205196async 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 )
265255async def test_starmap (c , s , a , b ):
266256 def add (x , y , z = 0 ):
0 commit comments