From: Jason R. Coombs Date: Sun, 30 Aug 2015 18:05:58 +0000 (-0400) Subject: Sort result to avoid spurious errors due to order. X-Git-Tag: v3.4.6rc1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a04c447c951b33aa8c8c0f1b6803b06101b7f92;p=python Sort result to avoid spurious errors due to order. --- diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py index 571acdbc08..e719198c6d 100644 --- a/Lib/distutils/tests/test_filelist.py +++ b/Lib/distutils/tests/test_filelist.py @@ -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): """