Skip to content

Commit 0dc10b9

Browse files
authored
fix: tests (#569)
* fix: tests Now that process gets replaced on UNIX, tests were not running (pytest got replaced with the first script invocation and returned success). * remove added `ccmake` test `ccmake` is not present on Windows `ccmake` seems to be failing on Linux currently.
1 parent 6d81146 commit 0dc10b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_cmake.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ def _run(program, args):
2727

2828

2929
@all_tools
30-
def test_cmake_module(tool):
30+
def test_cmake_module(tool, monkeypatch):
31+
monkeypatch.setattr(sys, "platform", "win32") # do not use os.execl
3132
_run(tool, ["--version"])
3233

3334

34-
def test_cmake_https(tmpdir):
35+
def test_cmake_https(tmpdir, monkeypatch):
36+
monkeypatch.setattr(sys, "platform", "win32") # do not use os.execl
3537
test_script = tmpdir.join("cmake-test-https-download.cmake")
3638
test_script.write(textwrap.dedent(
3739
"""

0 commit comments

Comments
 (0)