mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 11:58:52 +00:00
another oopsie that was revealed in python3
This commit is contained in:
parent
8a2bc75e55
commit
cc1a69fb65
@ -50,8 +50,7 @@ def bin_might_exist(request):
|
||||
@pytest.fixture
|
||||
def patch_history(request):
|
||||
def side_effect(name):
|
||||
print("history('{}')".format(name))
|
||||
count = 2 if name == 'not-really-used' else 12
|
||||
return 2 if name == 'not-really-used' else 12
|
||||
p = patch('thefuck.rules.no_command._count_history_uses',
|
||||
side_effect = side_effect)
|
||||
p.start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user