1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-30 14:44:05 +00:00

#394: Try simpler solution to limit lines count

This commit is contained in:
nvbn
2015-10-29 20:17:17 +08:00
parent 16533e85a7
commit bd6ee68c03
2 changed files with 20 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ def history_lines(mocker):
def aux(lines):
mock = mocker.patch('io.open')
mock.return_value.__enter__\
.return_value.__iter__.return_value = lines
.return_value.readlines.return_value = lines
return aux