# HG changeset patch # User Catherine Devlin # Date 1289183413 18000 # Node ID a53ba40b9848a699f56c29ea8992f793032ff204 # Parent f5aa16a22b52898198a265ee623d953da807ce9f improving missing-end detection for transcript test diff -r f5aa16a22b52 -r a53ba40b9848 cmd2.py --- a/cmd2.py Sun Nov 07 09:24:11 2010 -0500 +++ b/cmd2.py Sun Nov 07 21:30:13 2010 -0500 @@ -1516,7 +1516,7 @@ 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: