From 3422fcfc6e9181363d9215245587c2670cf59bdf Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 14 Aug 2024 18:19:37 +0200 Subject: [PATCH] skip Windows for now --- compliance_checker/suite.py | 2 +- compliance_checker/tests/test_cli.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/compliance_checker/suite.py b/compliance_checker/suite.py index 6b534f5f..66ff12dc 100644 --- a/compliance_checker/suite.py +++ b/compliance_checker/suite.py @@ -897,7 +897,7 @@ def load_local_dataset(self, ds_str): print( f"WARNING: {platform.system()} OS detected. NCZarr is not officially supported for your OS as of when this API was written. Your mileage may vary.", ) - return Dataset(zarr.as_zarr(ds_str)) + return Dataset(ds_str) if netcdf.is_netcdf(ds_str): return Dataset(ds_str) diff --git a/compliance_checker/tests/test_cli.py b/compliance_checker/tests/test_cli.py index 86ed3390..19bd9b16 100644 --- a/compliance_checker/tests/test_cli.py +++ b/compliance_checker/tests/test_cli.py @@ -20,7 +20,9 @@ from .conftest import datadir, static_files -if platform.system() == "Windows": +on_windows = platform.system() == "Windows" + +if on_windows: ncconfig = ["sh", f"{os.environ['CONDA_PREFIX']}\\Library\\bin\\nc-config"] else: ncconfig = ["nc-config"] @@ -244,12 +246,12 @@ def _check_libnetcdf_version(): "zarr_url", [ f"{(datadir / 'trajectory.zarr').as_uri()}#mode=nczarr,file", - str(datadir / "zip.zarr"), + # str(datadir / "zip.zarr"), # "s3://hrrrzarr/sfc/20210408/20210408_10z_anl.zarr#mode=nczarr,s3" ], ids=[ "local_file", - "zip_file", + # "zip_file", # TODO uncomment once S3 support is working. # "s3_url", ],