diff cmd2.py @ 408:a53ba40b9848

improving missing-end detection for transcript test
author Catherine Devlin <catherine.devlin@gmail.com>
date Sun, 07 Nov 2010 21:30:13 -0500
parents f5aa16a22b52
children 130889170679
line wrap: on
line diff
--- 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: