Skip to content

Commit

Permalink
Set a message in reset(), pointing to possible problems in abb_destru…
Browse files Browse the repository at this point in the history
…ir or abb_crear. (#2)

* Set a message in reset(), pointing to possible problems in abb_destruir.

* Problem might have occurred  in abb_crear() too.
  • Loading branch information
juanfresia committed Nov 14, 2017
1 parent 408eeda commit 64b4310
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion abb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ def reemplazar(self, key):

def reset(self):
self.seq = []
return self._communicate("X")
(msg, self.msg) = (self.msg,
"Posible fallo en abb_destruir() o abb_crear().\n")
self._communicate("X")
self.msg = msg

def _communicate(self, cmd, key=""):
self.proc.stdin.write("{}{}\n".format(cmd, key))
Expand Down

0 comments on commit 64b4310

Please sign in to comment.