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

#682: Disable instant mode on Python 2

This commit is contained in:
Vladimir Iakovlev
2017-08-26 13:16:10 +02:00
parent 1132015e60
commit 7a57355e7e
4 changed files with 31 additions and 4 deletions

View File

@@ -110,12 +110,12 @@ class TestCommand(object):
Popen = Mock()
Popen.return_value.stdout.read.return_value = b'stdout'
Popen.return_value.stderr.read.return_value = b'stderr'
monkeypatch.setattr('thefuck.output.rerun.Popen', Popen)
monkeypatch.setattr('thefuck.output_readers.rerun.Popen', Popen)
return Popen
@pytest.fixture(autouse=True)
def prepare(self, monkeypatch):
monkeypatch.setattr('thefuck.output.rerun._wait_output',
monkeypatch.setattr('thefuck.output_readers.rerun._wait_output',
lambda *_: True)
def test_from_script_calls(self, Popen, settings, os_environ):