diff --git a/debug/testlib.py b/debug/testlib.py index 63cc49c79..435b41b5a 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -432,7 +432,7 @@ def command(self, cmd): self.command_count += 1 self.process.stdin.write(magic + b"\n") self.process.stdin.flush() - m = self.expect(rb"(.*)^> " + re.escape(magic)) + m = self.expect(rb"(.*)^>\s*" + re.escape(magic)) return m.group(1) def expect(self, regex, message=None):