From cc1a69fb6526a6b9d0e3bcab3825496eded350d3 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Sat, 18 Apr 2015 16:49:26 -0500 Subject: [PATCH] another oopsie that was revealed in python3 --- tests/rules/test_no_command.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/rules/test_no_command.py b/tests/rules/test_no_command.py index 015c70b..0839213 100644 --- a/tests/rules/test_no_command.py +++ b/tests/rules/test_no_command.py @@ -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()