summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2010-11-07 21:30:13 -0500
committerCatherine Devlin <catherine.devlin@gmail.com>2010-11-07 21:30:13 -0500
commitf8dfd056d0c7b2b778c93bb4ea0c9e245689b583 (patch)
tree9319165a00f010dd74efb1c2be2731cdf4c4c468 /cmd2.py
parent79057a962c91ef7a854c0258f5b2288ee7cafa7e (diff)
downloadcmd2-git-f8dfd056d0c7b2b778c93bb4ea0c9e245689b583.tar.gz
improving missing-end detection for transcript test
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index e235f5ac..65066789 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1516,7 +1516,7 @@ class Cmd2TestCase(unittest.TestCase):
result = self.anyWhitespace.sub('', result)
self.assert_(re.match(expected, result, re.MULTILINE | re.DOTALL), message)
except StopIteration:
- message = 'Last %d lines never seen, beginning with\n%s' % (len(expected), expected[0])
+ message = 'Final portion of test not returned, beginning at line %d' % (lineNum)
self.assert_(len(expected) < 3, message)
def tearDown(self):
if self.CmdApp: