Skip to content

Commit

Permalink
test.py: print remaining string in *runtil()*
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaweiHawk committed Mar 17, 2024
1 parent 44075b2 commit 9755b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def runtil(self, string:str, timeout:int) -> None:
cursor = len(self.output)

idx = self.output.find(string) + len(string)
#print(self.output[cursor:idx], end="", flush=True)
print(self.output[cursor:idx], end="", flush=True)
self.output = self.output[idx:]

def write(self, buf:str) -> None:
Expand Down

0 comments on commit 9755b7f

Please sign in to comment.