diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/cmd/checksum.py | 1 | ||||
-rw-r--r-- | lib/spack/spack/test/cmd/deprecate.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/test/cmd/diff.py | 1 | ||||
-rw-r--r-- | lib/spack/spack/test/cmd/location.py | 9 | ||||
-rw-r--r-- | lib/spack/spack/test/cmd/providers.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/test/cmd/reindex.py | 4 | ||||
-rw-r--r-- | lib/spack/spack/test/cmd/stage.py | 4 | ||||
-rw-r--r-- | lib/spack/spack/test/cmd/url.py | 2 |
8 files changed, 3 insertions, 22 deletions
diff --git a/lib/spack/spack/test/cmd/checksum.py b/lib/spack/spack/test/cmd/checksum.py index 308940c268..ad63c40ff8 100644 --- a/lib/spack/spack/test/cmd/checksum.py +++ b/lib/spack/spack/test/cmd/checksum.py @@ -83,7 +83,6 @@ def test_checksum_args(arguments, expected): assert check == expected -@pytest.mark.not_on_windows("Not supported on Windows (yet)") @pytest.mark.parametrize( "arguments,expected", [ diff --git a/lib/spack/spack/test/cmd/deprecate.py b/lib/spack/spack/test/cmd/deprecate.py index 6669be57fe..8306bea023 100644 --- a/lib/spack/spack/test/cmd/deprecate.py +++ b/lib/spack/spack/test/cmd/deprecate.py @@ -14,8 +14,6 @@ uninstall = SpackCommand("uninstall") deprecate = SpackCommand("deprecate") find = SpackCommand("find") -pytestmark = pytest.mark.not_on_windows("does not run on windows") - def test_deprecate(mock_packages, mock_archive, mock_fetch, install_mockery): install("libelf@0.8.13") diff --git a/lib/spack/spack/test/cmd/diff.py b/lib/spack/spack/test/cmd/diff.py index 1792674253..259f6b871a 100644 --- a/lib/spack/spack/test/cmd/diff.py +++ b/lib/spack/spack/test/cmd/diff.py @@ -181,7 +181,6 @@ def test_diff_cmd(install_mockery, mock_fetch, mock_archive, mock_packages): assert ["hash", "mpileaks %s" % specB.dag_hash()] in c["b_not_a"] -@pytest.mark.not_on_windows("Not supported on Windows (yet)") def test_load_first(install_mockery, mock_fetch, mock_archive, mock_packages): """Test with and without the --first option""" install_cmd("mpileaks") diff --git a/lib/spack/spack/test/cmd/location.py b/lib/spack/spack/test/cmd/location.py index c6cde3c5ba..9b9e016f8b 100644 --- a/lib/spack/spack/test/cmd/location.py +++ b/lib/spack/spack/test/cmd/location.py @@ -3,7 +3,6 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) -import os import shutil import pytest @@ -16,10 +15,8 @@ import spack.stage from spack.main import SpackCommand, SpackCommandError # Everything here uses (or can use) the mock config and database. -pytestmark = [ - pytest.mark.usefixtures("mutable_config", "mutable_database"), - pytest.mark.not_on_windows("does not run on windows"), -] +pytestmark = [pytest.mark.usefixtures("mutable_config", "mutable_database")] + # location prints out "locations of packages and spack directories" location = SpackCommand("location") env = SpackCommand("env") @@ -65,7 +62,7 @@ def test_location_source_dir_missing(): prefix = "==> Error: " expected = ( "%sSource directory does not exist yet. Run this to create it:" - "%s spack stage %s" % (prefix, os.linesep, spec) + "%s spack stage %s" % (prefix, "\n", spec) ) out = location("--source-dir", spec, fail_on_error=False).strip() assert out == expected diff --git a/lib/spack/spack/test/cmd/providers.py b/lib/spack/spack/test/cmd/providers.py index e979f2db47..25d17ab9af 100644 --- a/lib/spack/spack/test/cmd/providers.py +++ b/lib/spack/spack/test/cmd/providers.py @@ -10,8 +10,6 @@ from spack.main import SpackCommand providers = SpackCommand("providers") -pytestmark = pytest.mark.not_on_windows("Providers not currently supported on Windows") - @pytest.mark.parametrize( "pkg", diff --git a/lib/spack/spack/test/cmd/reindex.py b/lib/spack/spack/test/cmd/reindex.py index f8c1d8b0e9..1aceeab197 100644 --- a/lib/spack/spack/test/cmd/reindex.py +++ b/lib/spack/spack/test/cmd/reindex.py @@ -4,8 +4,6 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os -import pytest - import spack.store from spack.main import SpackCommand @@ -13,8 +11,6 @@ install = SpackCommand("install") deprecate = SpackCommand("deprecate") reindex = SpackCommand("reindex") -pytestmark = pytest.mark.not_on_windows("does not run on windows") - def test_reindex_basic(mock_packages, mock_archive, mock_fetch, install_mockery): install("libelf@0.8.13") diff --git a/lib/spack/spack/test/cmd/stage.py b/lib/spack/spack/test/cmd/stage.py index cdca18d5e7..26e88e4280 100644 --- a/lib/spack/spack/test/cmd/stage.py +++ b/lib/spack/spack/test/cmd/stage.py @@ -22,7 +22,6 @@ env = SpackCommand("env") pytestmark = pytest.mark.usefixtures("install_mockery", "mock_packages") -@pytest.mark.not_on_windows("not implemented on windows") @pytest.mark.disable_clean_stage_check def test_stage_spec(monkeypatch): """Verify that staging specs works.""" @@ -63,7 +62,6 @@ def test_stage_path_errors_multiple_specs(check_stage_path): stage(f"--path={check_stage_path}", "trivial-install-test-package", "mpileaks") -@pytest.mark.not_on_windows("not implemented on windows") @pytest.mark.disable_clean_stage_check def test_stage_with_env_outside_env(mutable_mock_env_path, monkeypatch): """Verify that stage concretizes specs not in environment instead of erroring.""" @@ -82,7 +80,6 @@ def test_stage_with_env_outside_env(mutable_mock_env_path, monkeypatch): stage("trivial-install-test-package") -@pytest.mark.not_on_windows("not implemented on windows") @pytest.mark.disable_clean_stage_check def test_stage_with_env_inside_env(mutable_mock_env_path, monkeypatch): """Verify that stage filters specs in environment instead of reconcretizing.""" @@ -101,7 +98,6 @@ def test_stage_with_env_inside_env(mutable_mock_env_path, monkeypatch): stage("mpileaks") -@pytest.mark.not_on_windows("not implemented on windows") @pytest.mark.disable_clean_stage_check def test_stage_full_env(mutable_mock_env_path, monkeypatch): """Verify that stage filters specs in environment.""" diff --git a/lib/spack/spack/test/cmd/url.py b/lib/spack/spack/test/cmd/url.py index cea7b34a94..e29253299a 100644 --- a/lib/spack/spack/test/cmd/url.py +++ b/lib/spack/spack/test/cmd/url.py @@ -3,7 +3,6 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import re -import sys import pytest @@ -117,7 +116,6 @@ def test_url_summary(mock_packages): assert out_correct_versions == correct_versions -@pytest.mark.skipif(sys.platform.startswith("win"), reason="Unsupported on Windows for now") def test_url_stats(capfd, mock_packages): with capfd.disabled(): output = url("stats") |