diff options
author | catherine <catherine@dellzilla> | 2010-01-27 10:16:08 -0500 |
---|---|---|
committer | catherine <catherine@dellzilla> | 2010-01-27 10:16:08 -0500 |
commit | e4fc519d539b83871481787e7ff40cf477840058 (patch) | |
tree | e6a01580970ec652bd730d0cedc1d4eb2c0aba71 /cmd2.py | |
parent | 600b1d6776d7f0bf420112a87c719b010a117bbb (diff) | |
download | cmd2-hg-e4fc519d539b83871481787e7ff40cf477840058.tar.gz |
tweaking transcript test newlines (complete)
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1237,17 +1237,17 @@ class Cmd2TestCase(unittest.TestCase): def _test_transcript(self, fname, transcript): lineNum = 0 try: - line = transcript.next().strip() + line = transcript.next() while True: while not line.startswith(self.cmdapp.prompt): - line = transcript.next().strip() + line = transcript.next() command = [line[len(self.cmdapp.prompt):]] - line = transcript.next().strip() + line = transcript.next() while line.startswith(self.cmdapp.continuation_prompt): command.append(line[len(self.cmdapp.continuation_prompt):]) - line = transcript.next().strip() + line = transcript.next() command = ''.join(command) - self.cmdapp.onecmd(command) + self.cmdapp.onecmd(command.strip()) result = self.outputTrap.read().strip() if line.startswith(self.cmdapp.prompt): message = '\nFile %s, line %d\nCommand was:\n%s\nExpected: (nothing)\nGot:\n%s\n'%\ |