summaryrefslogtreecommitdiff
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
commit0527313302221e1ea39830b7d40dd21d1198e335 (patch)
tree9319165a00f010dd74efb1c2be2731cdf4c4c468
parent69ac45c952bdb1a986f3eab1d9433a93f8679c0e (diff)
downloadcmd2-hg-0527313302221e1ea39830b7d40dd21d1198e335.tar.gz
improving missing-end detection for transcript test
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index e235f5a..6506678 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: