mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-08 12:53:58 +01:00
Comply to new flake8 3.6 (#853)
* #N/A: Ignore W504 line break after binary operator W504 is now part of flake8 current version 3.6 * #N/A: Fix invalid escape sequences * #N/A: Remove conflicting path before installing gcc with brew
This commit is contained in:
committed by
Vladimir Iakovlev
parent
d226b8f258
commit
e6be00a63b
@@ -9,7 +9,7 @@ def output():
|
||||
'If you meant to search for a literal string, run ag with -Q\n')
|
||||
|
||||
|
||||
@pytest.mark.parametrize('script', ['ag \('])
|
||||
@pytest.mark.parametrize('script', ['ag \\('])
|
||||
def test_match(script, output):
|
||||
assert match(Command(script, output))
|
||||
|
||||
@@ -20,6 +20,6 @@ def test_not_match(script):
|
||||
|
||||
|
||||
@pytest.mark.parametrize('script, new_cmd', [
|
||||
('ag \(', 'ag -Q \(')])
|
||||
('ag \\(', 'ag -Q \\(')])
|
||||
def test_get_new_command(script, new_cmd, output):
|
||||
assert get_new_command((Command(script, output))) == new_cmd
|
||||
|
Reference in New Issue
Block a user