Fix failing unit test
This commit is contained in:
parent
7147236403
commit
2ecf1a3ddc
@ -58,6 +58,7 @@ class User(user.User):
|
|||||||
user.User.__init__(self, callback, error)
|
user.User.__init__(self, callback, error)
|
||||||
self.steps = 0;
|
self.steps = 0;
|
||||||
self.current_step = 0;
|
self.current_step = 0;
|
||||||
|
self._input = input
|
||||||
|
|
||||||
def yes(*args):
|
def yes(*args):
|
||||||
return True
|
return True
|
||||||
@ -135,7 +136,7 @@ class User(user.User):
|
|||||||
n = reject_label)
|
n = reject_label)
|
||||||
print (text, file = self._fileout) # TODO python3 add flush=True
|
print (text, file = self._fileout) # TODO python3 add flush=True
|
||||||
try:
|
try:
|
||||||
reply = input()
|
reply = self._input()
|
||||||
return reply == "" or reply == accept_label
|
return reply == "" or reply == accept_label
|
||||||
except EOFError:
|
except EOFError:
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user