diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-08-30 14:05:58 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-08-30 14:05:58 -0400 |
commit | 1a04c447c951b33aa8c8c0f1b6803b06101b7f92 (patch) | |
tree | fdd544dcc1d5b34802c8caa60becd4aac69ad67d | |
parent | a2cf2292a221f874bfec7587299ef26baee08906 (diff) | |
download | cpython-git-1a04c447c951b33aa8c8c0f1b6803b06101b7f92.tar.gz |
Sort result to avoid spurious errors due to order.
-rw-r--r-- | Lib/distutils/tests/test_filelist.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): """ |