Skip to content

Commit d60ed53

Browse files
committed
Attempt at fixing WSL unit test bug #472
1 parent 8318653 commit d60ed53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_cmd2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,9 +1434,9 @@ def test_which_editor_good():
14341434
@pytest.mark.skipif(sys.platform.startswith('win'),
14351435
reason="utils.which function only used on Mac and Linux")
14361436
def test_which_editor_bad():
1437-
editor = 'notepad.exe'
1438-
path = utils.which(editor)
1439-
# Assert that the editor wasn't found because no notepad.exe on non-Windows systems ;-)
1437+
nonexistent_editor = 'this_editor_does_not_exist.exe'
1438+
path = utils.which(nonexistent_editor)
1439+
# Assert that the non-existent editor wasn't found
14401440
assert path is None
14411441

14421442

0 commit comments

Comments
 (0)