mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
Fix tests in python 2
This commit is contained in:
parent
cd1468489f
commit
368be788d7
@ -20,13 +20,13 @@ def with_confirmation(proc):
|
|||||||
def history_changed(proc):
|
def history_changed(proc):
|
||||||
"""Ensures that history changed."""
|
"""Ensures that history changed."""
|
||||||
proc.send('\033[A')
|
proc.send('\033[A')
|
||||||
assert proc.expect([TIMEOUT, 'echo test'])
|
assert proc.expect([TIMEOUT, u'echo test'])
|
||||||
|
|
||||||
|
|
||||||
def history_not_changed(proc):
|
def history_not_changed(proc):
|
||||||
"""Ensures that history not changed."""
|
"""Ensures that history not changed."""
|
||||||
proc.send('\033[A')
|
proc.send('\033[A')
|
||||||
assert proc.expect([TIMEOUT, 'fuck'])
|
assert proc.expect([TIMEOUT, u'fuck'])
|
||||||
|
|
||||||
|
|
||||||
def refuse_with_confirmation(proc):
|
def refuse_with_confirmation(proc):
|
||||||
|
Loading…
Reference in New Issue
Block a user