1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-22 12:58:33 +00:00

another oopsie that was revealed in python3

This commit is contained in:
Jon Mason 2015-04-18 16:49:26 -05:00
parent 8a2bc75e55
commit cc1a69fb65

View File

@ -50,8 +50,7 @@ def bin_might_exist(request):
@pytest.fixture @pytest.fixture
def patch_history(request): def patch_history(request):
def side_effect(name): def side_effect(name):
print("history('{}')".format(name)) return 2 if name == 'not-really-used' else 12
count = 2 if name == 'not-really-used' else 12
p = patch('thefuck.rules.no_command._count_history_uses', p = patch('thefuck.rules.no_command._count_history_uses',
side_effect = side_effect) side_effect = side_effect)
p.start() p.start()