From 79ecac55f186e643fae93451c3a39bee237e523c Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Sun, 8 Jul 2018 14:27:33 +0100
Subject: [PATCH] TEST: allFiles does not guarantee order of result

---
 tests/test_fsl_utils_path.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/test_fsl_utils_path.py b/tests/test_fsl_utils_path.py
index 7016bfb9a..6bb54fcd8 100644
--- a/tests/test_fsl_utils_path.py
+++ b/tests/test_fsl_utils_path.py
@@ -121,8 +121,10 @@ def test_allFiles():
     ]
 
     with testdir(create) as td:
-        assert fslpath.allFiles('.') == [op.join('.', c) for c in create]
-        assert fslpath.allFiles(td)  == [op.join(td,  c) for c in create]
+        assert (sorted(fslpath.allFiles('.')) ==
+                sorted([op.join('.', c) for c in create]))
+        assert (sorted(fslpath.allFiles(td))  ==
+                sorted([op.join(td,  c) for c in create]))
 
 
 def test_hasExt():
-- 
GitLab