1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

Fix tests in python 2

This commit is contained in:
nvbn 2015-07-27 17:51:33 +03:00
parent cd1468489f
commit 368be788d7

View File

@ -20,13 +20,13 @@ def with_confirmation(proc):
def history_changed(proc):
"""Ensures that history changed."""
proc.send('\033[A')
assert proc.expect([TIMEOUT, 'echo test'])
assert proc.expect([TIMEOUT, u'echo test'])
def history_not_changed(proc):
"""Ensures that history not changed."""
proc.send('\033[A')
assert proc.expect([TIMEOUT, 'fuck'])
assert proc.expect([TIMEOUT, u'fuck'])
def refuse_with_confirmation(proc):