From 0527313302221e1ea39830b7d40dd21d1198e335 Mon Sep 17 00:00:00 2001 From: Catherine Devlin Date: Sun, 7 Nov 2010 21:30:13 -0500 Subject: improving missing-end detection for transcript test --- cmd2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1