summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2008-06-23 12:08:33 +0200
committerSylvain <syt@logilab.fr>2008-06-23 12:08:33 +0200
commitab987c5cd81803d02f854cb3977ed54cec187872 (patch)
tree05de78afca3fb81fb27a5c0c5eb8ad32d1a9ea0b /testlib.py
parent56ddc373ad268a4e3e94a3d032a6b6cc17d774f8 (diff)
downloadlogilab-common-ab987c5cd81803d02f854cb3977ed54cec187872.tar.gz
nicer error message
Diffstat (limited to 'testlib.py')
-rw-r--r--testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testlib.py b/testlib.py
index 0064468..181df15 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1146,7 +1146,7 @@ class TestCase(unittest.TestCase):
"""compares two iterable and shows difference between both"""
got, expected = list(got), list(expected)
if msg is None:
- msg1 = '%s != %s' % (got, expected)
+ msg1 = '%s != %s' % (sorted(got), sorted(expected))
else:
msg1 = msg
self.assertEquals(len(got), len(expected), msg1)