1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-10-07 20:34:02 +01:00

#697: Encode expanded script on Python 2

Fix #697
This commit is contained in:
Pablo Santiago Blum de Aguiar
2021-08-01 20:31:10 +02:00
committed by Pablo Aguiar
parent 2a166a7dec
commit 7b7c150bb7
3 changed files with 12 additions and 0 deletions

View File

@@ -30,6 +30,11 @@ class TestRerun(object):
actual = rerun.get_output('', '')
assert actual == expected
@patch('thefuck.output_readers.rerun._wait_output')
def test_get_output_unicode_misspell(self, wait_output_mock):
rerun.get_output(u'pácman', u'pácman')
wait_output_mock.assert_called_once()
def test_wait_output_is_slow(self, settings):
assert rerun._wait_output(Mock(), True)
self.proc_mock.wait.assert_called_once_with(settings.wait_slow_command)