Skip to content

Commit

Permalink
Fix CLI test on Windows (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored and izeigerman committed Nov 14, 2019
1 parent cb933aa commit 45a1269
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/e2e/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pickle
import platform
import subprocess

from sklearn import linear_model
Expand Down Expand Up @@ -44,8 +45,8 @@ def test_override_input(tmp_path):
def test_piped(tmp_path):
pickled_model_path = _prepare_pickled_model(tmp_path)
exec_args = [
"cat", str(pickled_model_path), " | ", "m2cgen", "--language",
"python"]
"type" if platform.system() in ('Windows', 'Microsoft') else "cat",
str(pickled_model_path), " | ", "m2cgen", "--language", "python"]
execute_test(exec_args)


Expand Down

0 comments on commit 45a1269

Please sign in to comment.