1
0
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:
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
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()