summaryrefslogtreecommitdiffstats
path: root/Lib/unittest.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-12-18 17:55:43 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-12-18 17:55:43 (GMT)
commita2eb94b1cf65e422ec8e3fb3f417d496cf80167b (patch)
tree1e0d8c4e023b5e6c8642cf050c10219916749314 /Lib/unittest.py
parent28b77ece829110379a4ea3d9e45246b69ed5df67 (diff)
downloadcpython-a2eb94b1cf65e422ec8e3fb3f417d496cf80167b.zip
cpython-a2eb94b1cf65e422ec8e3fb3f417d496cf80167b.tar.gz
cpython-a2eb94b1cf65e422ec8e3fb3f417d496cf80167b.tar.bz2
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.py')
-rw-r--r--Lib/unittest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py
index 9f5cea5e..03a11b7 100644
--- a/Lib/unittest.py
+++ b/Lib/unittest.py
@@ -540,15 +540,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, "%r is not False" % expr)
+ msg = self._formatMessage(msg, "%r is not false" % 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, "%r is not True" % expr)
+ msg = self._formatMessage(msg, "%r is not true" % expr)
raise self.failureException(msg)
def _formatMessage(self, msg, standardMsg):