diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-11 23:22:43 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-11 23:22:43 (GMT) |
commit | dbc363ce353ebd59f04778b045b89442bd59912a (patch) | |
tree | 4924a430017e788abe80c1e139a4be501b86451d /Lib/test/test_mhlib.py | |
parent | d7b568ac4d238281d6ac55b6d7b820c64250a09d (diff) | |
download | cpython-dbc363ce353ebd59f04778b045b89442bd59912a.zip cpython-dbc363ce353ebd59f04778b045b89442bd59912a.tar.gz cpython-dbc363ce353ebd59f04778b045b89442bd59912a.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_mhlib.py')
-rw-r--r-- | Lib/test/test_mhlib.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_mhlib.py b/Lib/test/test_mhlib.py index f59bf83..30f8ca3 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() |