diff options
author | Catherine Devlin <catherine.devlin@gmail.com> | 2010-11-07 21:30:13 -0500 |
---|---|---|
committer | Catherine Devlin <catherine.devlin@gmail.com> | 2010-11-07 21:30:13 -0500 |
commit | 0527313302221e1ea39830b7d40dd21d1198e335 (patch) | |
tree | 9319165a00f010dd74efb1c2be2731cdf4c4c468 | |
parent | 69ac45c952bdb1a986f3eab1d9433a93f8679c0e (diff) | |
download | cmd2-hg-0527313302221e1ea39830b7d40dd21d1198e335.tar.gz |
improving missing-end detection for transcript test
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |