Skip to content

Commit 7e8acc0

Browse files
authored
Add Windows support (#68)
1 parent 51ded7d commit 7e8acc0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python-pytest.el

+4-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,10 @@ With a prefix ARG, allow editing."
399399
'python-pdbtrack-comint-output-filter-function
400400
nil t))
401401
(run-hooks 'python-pytest-setup-hook)
402-
(make-comint-in-buffer "pytest" buffer "sh" nil "-c" command)
402+
(make-comint-in-buffer
403+
"pytest" buffer
404+
(if (eq system-type 'windows-nt) "cmdproxy" "sh")
405+
nil "-c" command)
403406
(run-hooks 'python-pytest-started-hook)
404407
(setq process (get-buffer-process buffer))
405408
(set-process-sentinel process #'python-pytest--process-sentinel))))

0 commit comments

Comments
 (0)