mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-30 00:52:32 +01:00
#415: Prevent double sudo
This commit is contained in:
@@ -19,6 +19,7 @@ def test_match(stderr, stdout):
|
||||
|
||||
def test_not_match():
|
||||
assert not match(Command())
|
||||
assert not match(Command(script='sudo ls', stderr='Permission denied'))
|
||||
|
||||
|
||||
@pytest.mark.parametrize('before, after', [
|
||||
|
Reference in New Issue
Block a user