changeset 1368:f369d028cb15

fix test: sort os.listdir results, do no rely on them being already sorted
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 09 Jun 2012 18:23:20 +0200
parents 5f6ee0ddb0aa
children e34b627881e4
files MoinMoin/util/_tests/test_filesys.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/_tests/test_filesys.py	Thu Jun 07 15:38:56 2012 -0700
+++ b/MoinMoin/util/_tests/test_filesys.py	Sat Jun 09 18:23:20 2012 +0200
@@ -159,7 +159,7 @@
         self.test_dest_dir = self.test_dir + '_copy'
         filesys.copytree(self.test_dir, self.test_dest_dir)
         # check for the dir contents
-        assert os.listdir(self.test_dir) == os.listdir(self.test_dest_dir)
+        assert sorted(os.listdir(self.test_dir)) == sorted(os.listdir(self.test_dest_dir))
 
     def test_dir_exist(self):
         """ raise Error if dir already exist """