# HG changeset patch # User catherine@dellzilla # Date 1265917267 18000 # Node ID 7cd74e42b7f974dc18b151c359c30063492e1eab # Parent 92770d2c84380db5a2a8964f5cbded8ea73b2148 transcript test running again diff -r 92770d2c8438 -r 7cd74e42b7f9 cmd2.py --- a/cmd2.py Thu Feb 11 14:39:49 2010 -0500 +++ b/cmd2.py Thu Feb 11 14:41:07 2010 -0500 @@ -1444,9 +1444,9 @@ while line.startswith(self.cmdapp.continuation_prompt): command.append(line[len(self.cmdapp.continuation_prompt):]) line = transcript.next() - command = ''.join(command).strip() + command = ''.join(command) self.cmdapp.onecmd(command) - result = self.outputTrap.read().strip() + result = self.outputTrap.read() if line.startswith(self.cmdapp.prompt): message = '\nFile %s, line %d\nCommand was:\n%s\nExpected: (nothing)\nGot:\n%s\n'%\ (fname, lineNum, command, result) @@ -1456,7 +1456,7 @@ while not line.startswith(self.cmdapp.prompt): expected.append(line) line = transcript.next() - expected = ''.join(expected).strip() + expected = ''.join(expected) message = '\nFile %s, line %d\nCommand was:\n%s\nExpected:\n%s\nGot:\n%s\n'%\ (fname, lineNum, command, expected, result) expected = self.expectationParser.transformString(expected)