diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-12-03 00:53:09 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-12-03 00:53:09 (GMT) |
commit | 5074df623b70cf196965af332092a6f98a035c3d (patch) | |
tree | 25fdc5c475e5d4a344ed269707d327be72ae1363 /Doc | |
parent | 1203720ffb7d722df0c5322dcdd250eefd79c6ab (diff) | |
download | cpython-5074df623b70cf196965af332092a6f98a035c3d.zip cpython-5074df623b70cf196965af332092a6f98a035c3d.tar.gz cpython-5074df623b70cf196965af332092a6f98a035c3d.tar.bz2 |
Issue 7911: unittest.TestCase.longMessage defaults to True for improved failure messages by default
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index db6c53f..2b9c2be 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1305,8 +1305,8 @@ Test cases to ``True`` allows you to have a custom error message in addition to the normal one. - This attribute defaults to ``False``, meaning that a custom message passed - to an assert method will silence the normal message. + This attribute defaults to ``True``. If set to False then a custom message + passed to an assert method will silence the normal message. The class setting can be overridden in individual tests by assigning an instance attribute to ``True`` or ``False`` before calling the assert methods. |