Skip to content

Commit 18528bb

Browse files
matteiusoz123
authored andcommitted
fix test
1 parent e84aced commit 18528bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_python.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def mock_version(*args, **kwargs):
2020
class FakeObj:
2121
def __init__(self, out):
2222
self.out = out
23+
self.args = ['py', '--list-paths']
2324

2425
def communicate(self, *args, **kwargs):
2526
return self.out, ""
@@ -79,6 +80,7 @@ def mock_version(*args, **kwargs):
7980
class FakeObj:
8081
def __init__(self, out):
8182
self.out = out
83+
self.args = ['py', '--list-paths']
8284

8385
def communicate(self, *args, **kwargs):
8486
return self.out, ""
@@ -91,6 +93,9 @@ def __enter__(self):
9193

9294
def __exit__(self, exc_type, exc_val, exc_tb):
9395
self.kill()
96+
97+
def poll(self):
98+
return 0
9499

95100
c = FakeObj(".".join([str(i) for i in version_output.split()[0].split(".")]))
96101
return c

0 commit comments

Comments
 (0)