cpython: a0913dbadea6 (original) (raw)

--- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -892,14 +892,22 @@ class WalkTests(unittest.TestCase): os.symlink('broken', broken_link_path, True) os.symlink(join('tmp3', 'broken'), broken_link2_path, True) os.symlink(join('SUB21', 'tmp5'), broken_link3_path, True)

os.chmod(sub21_path, 0)

def test_walk_topdown(self): # Walk top-down. @@ -912,6 +920,7 @@ class WalkTests(unittest.TestCase): flipped = all[0][1][0] != "SUB1" all[0][1].sort() all[3 - 2 * flipped][-1].sort()

@@ -934,6 +943,7 @@ class WalkTests(unittest.TestCase): (str(walk_path), ["SUB2"], ["tmp1"])) all[1][-1].sort()

def test_file_like_path(self): @@ -950,6 +960,7 @@ class WalkTests(unittest.TestCase): flipped = all[3][1][0] != "SUB1" all[3][1].sort() all[2 - 2 * flipped][-1].sort()