Skip to content

Commit

Permalink
Explicitly skip Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Aug 4, 2021
1 parent 1c2ecf4 commit 723bdb5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions yt/tests/test_load_archive.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import tarfile
import time

Expand Down Expand Up @@ -26,8 +27,11 @@ def tmp_data_dir(tmp_path):


# Note: ratarmount cannot currently be installed on Windows as of v0.8.1
@requires_module_pytest("pooch")
@requires_module_pytest("ratarmount")
@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="ratarmount cannot currently be installed on Windows as of v0.8.1",
)
@requires_module_pytest("pooch", "ratarmount")
@pytest.mark.parametrize(
"fn, exact_loc, class_",
[
Expand Down Expand Up @@ -82,8 +86,11 @@ def test_load_archive(
assert not mount_path.exists()


@requires_module_pytest("pooch")
@requires_module_pytest("ratarmount")
@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="ratarmount cannot currently be installed on Windows as of v0.8.1",
)
@requires_module_pytest("pooch", "ratarmount")
def test_load_invalid_archive(tmp_data_dir, data_registry):
# Archive does not exist
with pytest.raises(FileNotFoundError):
Expand Down

0 comments on commit 723bdb5

Please sign in to comment.