1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

Merge pull request #137 from Sclarki/patch-1

Added dpkg rule
This commit is contained in:
Vladimir Iakovlev 2015-04-28 20:32:41 +02:00
commit e1ca120eb8
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ from tests.utils import Command
@pytest.mark.parametrize('stderr', ['Permission denied',
'permission denied',
"npm ERR! Error: EACCES, unlink"])
"npm ERR! Error: EACCES, unlink",
'requested operation requires superuser privilege'])
def test_match(stderr):
assert match(Command(stderr=stderr), None)

View File

@ -7,7 +7,8 @@ patterns = ['permission denied',
'root privilege',
'This command has to be run under the root user.',
'This operation requires root.',
'You need to be root to perform this command.']
'You need to be root to perform this command.',
'requested operation requires superuser privilege']
def match(command, settings):