mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-12 14:54:02 +01:00
N/A: Remove deprecated python 3.4 support + fix tests in 2.7 (#1025)
* N/A: Remove deprecated python 3.4 support More details - https://www.python.org/downloads/release/python-3410/ * N/A: Remove Python 3.4 from appveyor config * N/A: Fix UnicodeDecodeError with Python 2.7 and newer versions of py.test
This commit is contained in:
committed by
GitHub
parent
d10fc80fa5
commit
60073bea78
@@ -225,9 +225,12 @@ class TestGetValidHistoryWithoutCurrent(object):
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def history(self, mocker):
|
||||
return mocker.patch('thefuck.shells.shell.get_history',
|
||||
return_value=['le cat', 'fuck', 'ls cat',
|
||||
'diff x', 'nocommand x', u'café ô'])
|
||||
mock = mocker.patch('thefuck.shells.shell.get_history')
|
||||
# Passing as an argument causes `UnicodeDecodeError`
|
||||
# with newer py.test and python 2.7
|
||||
mock.return_value = ['le cat', 'fuck', 'ls cat',
|
||||
'diff x', 'nocommand x', u'café ô']
|
||||
return mock
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def alias(self, mocker):
|
||||
|
Reference in New Issue
Block a user