From e6700127431f5d81f081be198bfe8564269573b8 Mon Sep 17 00:00:00 2001 From: DarkLight1337 Date: Wed, 5 Jun 2024 12:26:30 +0800 Subject: [PATCH] Fix CLI test for windows --- test/test_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_cli.py b/test/test_cli.py index f000b3d..b78960d 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -1,6 +1,7 @@ import subprocess +import sys def test_help(): assert subprocess.call(['python', '-m', 'pycm', '--help']) == 0 - assert subprocess.call(['pycm', '--help']) == 0 + assert subprocess.call(['pycm', '--help'], shell=sys.platform == "win32") == 0