Skip to content

Commit 153fcc2

Browse files
committed
test(macos): Don't delete extra_makefile on macos
For some reason, even though the test succeeds, the actual file isn't created like on linux. Maybe about versions/implementations of make?
1 parent 0eabf4f commit 153fcc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/t/test_make.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import sys
23

34
import pytest
45

@@ -9,7 +10,9 @@ class TestMake:
910
@pytest.fixture
1011
def remove_extra_makefile(self, bash):
1112
yield
12-
os.remove(f"{bash.cwd}/make/extra_makefile")
13+
# For some reason macos make doesn't actually create extra_makefile
14+
if sys.platform != "darwin":
15+
os.remove(f"{bash.cwd}/make/extra_makefile")
1316

1417
@pytest.mark.complete("make -f Ma", cwd="make")
1518
def test_1(self, completion):

0 commit comments

Comments
 (0)