diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-12-18 17:58:29 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-12-18 17:58:29 +0000 |
commit | c139a5683b58b0ed1f639b5da1b8a53841f71772 (patch) | |
tree | 41370eea62609f4e14da56924555a1f257e80835 /Lib/unittest/case.py | |
parent | 3f752ab22e369bd664bbce395099f263e3cff784 (diff) | |
download | cpython-git-c139a5683b58b0ed1f639b5da1b8a53841f71772.tar.gz |
Merged revisions 87377 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87377 | ezio.melotti | 2010-12-18 18:31:58 +0100 (Sat, 18 Dec 2010) | 1 line
Use lowercase true/false in assertTrue/assertFalse messages.
........
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r-- | Lib/unittest/case.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 6e7dd24e68..3940daa4c4 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -393,15 +393,15 @@ class TestCase(object): raise self.failureException(msg) def assertFalse(self, expr, msg=None): - "Fail the test if the expression is true." + """Check that the expression is false.""" if expr: - msg = self._formatMessage(msg, "%s is not False" % safe_repr(expr)) + msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr)) raise self.failureException(msg) def assertTrue(self, expr, msg=None): - """Fail the test unless the expression is true.""" + """Check that the expression is true.""" if not expr: - msg = self._formatMessage(msg, "%s is not True" % safe_repr(expr)) + msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr)) raise self.failureException(msg) def _formatMessage(self, msg, standardMsg): |