diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/create.py | 2 | ||||
-rw-r--r-- | lib/spack/spack/test/build_system_guess.py | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py index 3582877ee1..7d7444a9a0 100644 --- a/lib/spack/spack/cmd/create.py +++ b/lib/spack/spack/cmd/create.py @@ -715,7 +715,7 @@ class BuildSystemGuesser: output = tar("--exclude=*/*/*", "-tf", stage.archive_file, output=str) except ProcessError: output = "" - lines = output.split("\n") + lines = output.splitlines() # Determine the build system based on the files contained # in the archive. diff --git a/lib/spack/spack/test/build_system_guess.py b/lib/spack/spack/test/build_system_guess.py index ec14fa01ee..bc1ad6aa1a 100644 --- a/lib/spack/spack/test/build_system_guess.py +++ b/lib/spack/spack/test/build_system_guess.py @@ -3,8 +3,6 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) -import sys - import pytest import spack.cmd.create @@ -12,8 +10,6 @@ import spack.stage import spack.util.executable import spack.util.url as url_util -pytestmark = pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows") - @pytest.fixture( scope="function", |