summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorcatherine <catherine@dellzilla>2010-02-11 14:41:07 -0500
committercatherine <catherine@dellzilla>2010-02-11 14:41:07 -0500
commita46fb382e9b97c8d52fd7113f1750b53ea2791aa (patch)
tree469e2b7f9872bb0cf02927879969ead141de775c /cmd2.py
parent7b38e1fb60ae59227153e8b5c6deb2edbf6a1a16 (diff)
downloadcmd2-hg-a46fb382e9b97c8d52fd7113f1750b53ea2791aa.tar.gz
transcript test running again
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2.py b/cmd2.py
index 1c617fc..1aee905 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1444,9 +1444,9 @@ class Cmd2TestCase(unittest.TestCase):
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 @@ class Cmd2TestCase(unittest.TestCase):
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)