summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testlib.py b/testlib.py
index cb98e90..23aee4a 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1113,7 +1113,7 @@ class TestCase(unittest.TestCase):
def assertIsInstance(self, obj, klass, msg=None):
"""compares two files using difflib"""
if msg is None:
- msg = '%s is not an instance of %s' % (obj, klass)
+ msg = '%s is not an instance of %s but of %s' % (obj, klass, type(obj))
self.assert_(isinstance(obj, klass), msg)