We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8318653 commit d60ed53Copy full SHA for d60ed53
tests/test_cmd2.py
@@ -1434,9 +1434,9 @@ def test_which_editor_good():
1434
@pytest.mark.skipif(sys.platform.startswith('win'),
1435
reason="utils.which function only used on Mac and Linux")
1436
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 ;-)
+ nonexistent_editor = 'this_editor_does_not_exist.exe'
+ path = utils.which(nonexistent_editor)
+ # Assert that the non-existent editor wasn't found
1440
assert path is None
1441
1442
0 commit comments