mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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.
This commit is contained in:
parent
d7b568ac4d
commit
dbc363ce35
1 changed files with 4 additions and 2 deletions
|
|
@ -171,8 +171,10 @@ class MhlibTests(unittest.TestCase):
|
||||||
|
|
||||||
folders = mh.listallfolders()
|
folders = mh.listallfolders()
|
||||||
folders.sort()
|
folders.sort()
|
||||||
eq(folders, map(normF, ['deep', 'deep/f1', 'deep/f2', 'deep/f2/f3',
|
tfolders = map(normF, ['deep', 'deep/f1', 'deep/f2', 'deep/f2/f3',
|
||||||
'inbox', 'wide']))
|
'inbox', 'wide'])
|
||||||
|
tfolders.sort()
|
||||||
|
eq(folders, tfolders)
|
||||||
|
|
||||||
folders = mh.listsubfolders('deep')
|
folders = mh.listsubfolders('deep')
|
||||||
folders.sort()
|
folders.sort()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue