[Python-checkins] cpython (3.4): Sort result to avoid spurious errors due to order.

jason.coombs python-checkins at python.org
Thu Sep 1 21:17:07 EDT 2016


https://hg.python.org/cpython/rev/5d775d50224c
changeset:   102994:5d775d50224c
branch:      3.4
user:        Jason R. Coombs <jaraco at jaraco.com>
date:        Sun Aug 30 14:05:58 2015 -0400
summary:
  Sort result to avoid spurious errors due to order.

files:
  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
--- a/Lib/distutils/tests/test_filelist.py
+++ b/Lib/distutils/tests/test_filelist.py
@@ -314,8 +314,8 @@
             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):
         """

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list