diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-15 15:55:38 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-15 15:55:38 (GMT) |
commit | c96f5a0457caea1757acdbac8626559542242b8c (patch) | |
tree | f9fec7debfb1a70c7c715864ae3c19efb6ec3986 /Lib | |
parent | acfc26acb0dff670f68a59c82762e21e81cc7fb0 (diff) | |
download | cpython-c96f5a0457caea1757acdbac8626559542242b8c.zip cpython-c96f5a0457caea1757acdbac8626559542242b8c.tar.gz cpython-c96f5a0457caea1757acdbac8626559542242b8c.tar.bz2 |
Sort file list in test_os.WalkTests
Adding new files into the tree lead to buildbot fails as the order wasn't
deterministic.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_os.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 1e0daf0..9a84ba1 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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, [], [])) |