]> granicus.if.org Git - python/commitdiff
Sort result to avoid spurious errors due to order.
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 30 Aug 2015 18:05:58 +0000 (14:05 -0400)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 30 Aug 2015 18:05:58 +0000 (14:05 -0400)
Lib/distutils/tests/test_filelist.py

index 571acdbc08262e02e26244edc9314bc66d2c3bfe..e719198c6d9cdce55ccf472ad08c7cc44e03d06f 100644 (file)
@@ -314,8 +314,8 @@ class FindAllTestCase(unittest.TestCase):
             os.mkdir('bar')
             file2 = os.path.join('bar', 'file2.txt')
             test.support.create_empty_file(file2)
-            expected = [file1, file2]
-            self.assertEqual(filelist.findall(), expected)
+            expected = [file2, file1]
+            self.assertEqual(sorted(filelist.findall()), expected)
 
     def test_non_local_discovery(self):
         """