Sort result to avoid spurious errors due to order.

This commit is contained in:
Jason R. Coombs 2015-08-30 14:05:58 -04:00
parent a2cf2292a2
commit 1a04c447c9
1 changed files with 2 additions and 2 deletions

View 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):
"""