changeset 322:7cd74e42b7f9

transcript test running again
author catherine@dellzilla
date Thu, 11 Feb 2010 14:41:07 -0500
parents 92770d2c8438
children fc1e5a141920
files cmd2.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)