Skip to content

Commit

Permalink
Extract shell executable from path in test_detect_shell() on Windows
Browse files Browse the repository at this point in the history
Never versions of shellingham started returning the full shell path on
Windows:
sarugaku/shellingham#43.
  • Loading branch information
tjanez committed Feb 14, 2022
1 parent 34f6412 commit 3f3ef01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_workon.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_detect_shell():
# you.
# Hint: Disable this test like this: pytest -m 'not shell'
# https://github.com/berdario/pew/pull/204#discussion_r273835108
assert _detect_shell() == 'pwsh.exe'
assert Path(_detect_shell()).name == 'pwsh.exe'
else:
assert _detect_shell() == 'sh'
os.environ['SHELL'] = 'foo'
Expand Down

0 comments on commit 3f3ef01

Please sign in to comment.