From 1df4afb53f3b9bb9ac8e8df5e9a60bc8f2767d44 Mon Sep 17 00:00:00 2001 From: markus-ferrell <116021216+markus-ferrell@users.noreply.github.com> Date: Thu, 15 Jun 2023 14:40:09 -0400 Subject: Enable build system guess tests on windows (#36971) --- lib/spack/spack/cmd/create.py | 2 +- lib/spack/spack/test/build_system_guess.py | 4 ---- 2 files changed, 1 insertion(+), 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", -- cgit v1.2.3-70-g09d2