mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Sort file list in test_os.WalkTests
Adding new files into the tree lead to buildbot fails as the order wasn't deterministic.
This commit is contained in:
parent
acfc26acb0
commit
c96f5a0457
2 changed files with 3 additions and 2 deletions
|
@ -695,6 +695,7 @@ class WalkTests(unittest.TestCase):
|
|||
# flipped: TESTFN, SUB2, SUB1, SUB11
|
||||
flipped = all[0][1][0] != "SUB1"
|
||||
all[0][1].sort()
|
||||
all[3 - 2 * flipped][-1].sort()
|
||||
self.assertEqual(all[0], (walk_path, ["SUB1", "SUB2"], ["tmp1"]))
|
||||
self.assertEqual(all[1 + flipped], (sub1_path, ["SUB11"], ["tmp2"]))
|
||||
self.assertEqual(all[2 + flipped], (sub11_path, [], []))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue