summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves David <pierre-yves.david@logilab.fr>2008-06-19 15:19:52 +0200
committerPierre-Yves David <pierre-yves.david@logilab.fr>2008-06-19 15:19:52 +0200
commit7762c3247509b8ee97d5695c23dce6759b4edbbe (patch)
tree164b1f1c5b6c2400c6baae7f5a9b1e8a44fdcba6
parent2d5d7c02ad828aa1ac6353d6386ac8c5c1f10886 (diff)
downloadlogilab-common-7762c3247509b8ee97d5695c23dce6759b4edbbe.tar.gz
revert docstring modification
-rw-r--r--testlib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testlib.py b/testlib.py
index ae9820a..1db18ec 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1134,7 +1134,7 @@ class TestCase(unittest.TestCase):
assertDictEqual = assertDictEquals
def assertSetEquals(self, got, expected, msg=None):
- """compares two set and shows difference between both"""
+ """compares two iterable and shows difference between both"""
got, expected = list(got), list(expected)
if msg is None:
msg1 = '%s != %s' % (got, expected)
@@ -1307,13 +1307,13 @@ class TestCase(unittest.TestCase):
def assertNone(self, obj, msg=None):
"""assert obj is None"""
if msg is None:
- msg = "param is not None"
+ msg = "reference to %r when None expected"%(obj,)
self.assert_( obj is None, msg )
def assertNotNone(self, obj, msg=None):
"""assert obj is not None"""
if msg is None:
- msg = "param is None"
+ msg = "unexpected reference to None"
self.assert_( obj is not None, msg )
def failUnlessRaises(self, excClass, callableObj, *args, **kwargs):