# HG changeset patch # User catherine@dellzilla # Date 1264604711 18000 # Node ID c3b9b2256dd6a3023a920f38668207dac73de9ca # Parent b4b22dd087dc3727157b8d280881af522c407567 tweaking transcript test newlines diff -r b4b22dd087dc -r c3b9b2256dd6 cmd2.py --- a/cmd2.py Tue Jan 26 18:11:12 2010 -0500 +++ b/cmd2.py Wed Jan 27 10:05:11 2010 -0500 @@ -1237,15 +1237,15 @@ def _test_transcript(self, fname, transcript): lineNum = 0 try: - line = transcript.next() + line = transcript.next().strip() while True: while not line.startswith(self.cmdapp.prompt): - line = transcript.next() + line = transcript.next().strip() command = [line[len(self.cmdapp.prompt):]] - line = transcript.next() + line = transcript.next().strip() while line.startswith(self.cmdapp.continuation_prompt): command.append(line[len(self.cmdapp.continuation_prompt):]) - line = transcript.next() + line = transcript.next().strip() command = ''.join(command) self.cmdapp.onecmd(command) result = self.outputTrap.read().strip()