From: Jack Jansen Date: Sat, 11 Aug 2001 23:22:43 +0000 (+0000) Subject: The test assumed that the local pathname convention for "foo" would sort before ... X-Git-Tag: v2.2a3~630 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbc363ce353ebd59f04778b045b89442bd59912a;p=python The test assumed that the local pathname convention for "foo" would sort before "foo/bar", which is not true on the mac (where they are "foo" and ":foo:bar", respectively; ":foo" would be fine too, but "foo" is the preferred spelling). Fixed by sorting the output. --- diff --git a/Lib/test/test_mhlib.py b/Lib/test/test_mhlib.py index f59bf83863..30f8ca3f10 100644 --- a/Lib/test/test_mhlib.py +++ b/Lib/test/test_mhlib.py @@ -171,8 +171,10 @@ class MhlibTests(unittest.TestCase): folders = mh.listallfolders() folders.sort() - eq(folders, map(normF, ['deep', 'deep/f1', 'deep/f2', 'deep/f2/f3', - 'inbox', 'wide'])) + tfolders = map(normF, ['deep', 'deep/f1', 'deep/f2', 'deep/f2/f3', + 'inbox', 'wide']) + tfolders.sort() + eq(folders, tfolders) folders = mh.listsubfolders('deep') folders.sort()