diff options
author | Sylvain <syt@logilab.fr> | 2008-06-23 12:08:33 +0200 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2008-06-23 12:08:33 +0200 |
commit | ab987c5cd81803d02f854cb3977ed54cec187872 (patch) | |
tree | 05de78afca3fb81fb27a5c0c5eb8ad32d1a9ea0b /testlib.py | |
parent | 56ddc373ad268a4e3e94a3d032a6b6cc17d774f8 (diff) | |
download | logilab-common-ab987c5cd81803d02f854cb3977ed54cec187872.tar.gz |
nicer error message
Diffstat (limited to 'testlib.py')
-rw-r--r-- | testlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |