Skip to content

Commit 1cb412c

Browse files
committed
odd interation between pytest fixture loop and flake
1 parent ef2c8d0 commit 1cb412c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

xarray/tests/test_backends_file_manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import collections
21
import gc
32
import pickle
43
import threading

xarray/tests/test_distributed.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from dask.distributed import Client, Lock
1212
from distributed.utils_test import cluster, gen_cluster
13+
from distributed.utils_test import loop # noqa
1314
from distributed.client import futures_of
1415

1516
import xarray as xr
@@ -57,7 +58,7 @@ def tmp_netcdf_filename(tmpdir):
5758
]
5859

5960

60-
@pytest.mark.parametrize('engine,nc_format', ENGINES_AND_FORMATS)
61+
@pytest.mark.parametrize('engine,nc_format', ENGINES_AND_FORMATS) # noqa
6162
def test_dask_distributed_netcdf_roundtrip(
6263
loop, tmp_netcdf_filename, engine, nc_format):
6364

@@ -87,7 +88,7 @@ def test_dask_distributed_netcdf_roundtrip(
8788
assert_allclose(original, computed)
8889

8990

90-
@pytest.mark.parametrize('engine,nc_format', ENGINES_AND_FORMATS)
91+
@pytest.mark.parametrize('engine,nc_format', ENGINES_AND_FORMATS) # noqa
9192
def test_dask_distributed_read_netcdf_integration_test(
9293
loop, tmp_netcdf_filename, engine, nc_format):
9394

@@ -111,7 +112,7 @@ def test_dask_distributed_read_netcdf_integration_test(
111112
assert_allclose(original, computed)
112113

113114

114-
@requires_zarr
115+
@requires_zarr # noqar
115116
@pytest.mark.parametrize('consolidated', [True, False])
116117
@pytest.mark.parametrize('compute', [True, False])
117118
def test_dask_distributed_zarr_integration_test(loop, consolidated, compute):
@@ -137,7 +138,7 @@ def test_dask_distributed_zarr_integration_test(loop, consolidated, compute):
137138
assert_allclose(original, computed)
138139

139140

140-
@requires_rasterio
141+
@requires_rasterio # noqa
141142
def test_dask_distributed_rasterio_integration_test(loop):
142143
with create_tmp_geotiff() as (tmp_file, expected):
143144
with cluster() as (s, [a, b]):
@@ -148,7 +149,7 @@ def test_dask_distributed_rasterio_integration_test(loop):
148149
assert_allclose(actual, expected)
149150

150151

151-
@requires_cfgrib
152+
@requires_cfgrib # noqa
152153
def test_dask_distributed_cfgrib_integration_test(loop):
153154
with cluster() as (s, [a, b]):
154155
with Client(s['address'], loop=loop):

0 commit comments

Comments
 (0)