diff --git a/tests/test_cmake.py b/tests/test_cmake.py index d4d2df55..11f1fc54 100644 --- a/tests/test_cmake.py +++ b/tests/test_cmake.py @@ -27,11 +27,13 @@ def _run(program, args): @all_tools -def test_cmake_module(tool): +def test_cmake_module(tool, monkeypatch): + monkeypatch.setattr(sys, "platform", "win32") # do not use os.execl _run(tool, ["--version"]) -def test_cmake_https(tmpdir): +def test_cmake_https(tmpdir, monkeypatch): + monkeypatch.setattr(sys, "platform", "win32") # do not use os.execl test_script = tmpdir.join("cmake-test-https-download.cmake") test_script.write(textwrap.dedent( """