Xiang Zhang added the comment: Seems like the dir you add breaks other cases. I change addCleanUp to os.chmod and get:
====================================================================== FAIL: test_file_like_path (test.test_os.BytesWalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 950, in test_file_like_path self.test_walk_prune(_PathLike(self.walk_path)) File "/home/angwer/cpython/Lib/test/test_os.py", line 941, in test_walk_prune self.assertEqual(len(all), 2) AssertionError: 3 != 2 ====================================================================== FAIL: test_walk_bottom_up (test.test_os.BytesWalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 956, in test_walk_bottom_up self.assertEqual(len(all), 4, all) AssertionError: 5 != 4 : [('@test_24702_tmp/TEST1/SUB2/SUB21', [], ['tmp3']), ('@test_24702_tmp/TEST1/SUB2', ['link', 'SUB21'], ['tmp3', 'broken_link3', 'broken_link', 'broken_link2']), ('@test_24702_tmp/TEST1/SUB1/SUB11', [], []), ('@test_24702_tmp/TEST1/SUB1', ['SUB11'], ['tmp2']), ('@test_24702_tmp/TEST1', ['SUB2', 'SUB1'], ['tmp1'])] ====================================================================== FAIL: test_walk_prune (test.test_os.BytesWalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 941, in test_walk_prune self.assertEqual(len(all), 2) AssertionError: 3 != 2 ====================================================================== FAIL: test_walk_topdown (test.test_os.BytesWalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 916, in test_walk_topdown self.assertEqual(len(all), 4) AssertionError: 5 != 4 ====================================================================== FAIL: test_file_like_path (test.test_os.FwalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 950, in test_file_like_path self.test_walk_prune(_PathLike(self.walk_path)) File "/home/angwer/cpython/Lib/test/test_os.py", line 941, in test_walk_prune self.assertEqual(len(all), 2) AssertionError: 3 != 2 ====================================================================== FAIL: test_walk_bottom_up (test.test_os.FwalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 956, in test_walk_bottom_up self.assertEqual(len(all), 4, all) AssertionError: 5 != 4 : [('@test_24702_tmp/TEST1/SUB2/SUB21', [], ['tmp3']), ('@test_24702_tmp/TEST1/SUB2', ['link', 'SUB21'], ['tmp3', 'broken_link3', 'broken_link', 'broken_link2']), ('@test_24702_tmp/TEST1/SUB1/SUB11', [], []), ('@test_24702_tmp/TEST1/SUB1', ['SUB11'], ['tmp2']), ('@test_24702_tmp/TEST1', ['SUB2', 'SUB1'], ['tmp1'])] ====================================================================== FAIL: test_walk_prune (test.test_os.FwalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 941, in test_walk_prune self.assertEqual(len(all), 2) AssertionError: 3 != 2 ====================================================================== FAIL: test_walk_topdown (test.test_os.FwalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 916, in test_walk_topdown self.assertEqual(len(all), 4) AssertionError: 5 != 4 ====================================================================== FAIL: test_file_like_path (test.test_os.WalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 950, in test_file_like_path self.test_walk_prune(_PathLike(self.walk_path)) File "/home/angwer/cpython/Lib/test/test_os.py", line 941, in test_walk_prune self.assertEqual(len(all), 2) AssertionError: 3 != 2 ====================================================================== FAIL: test_walk_bottom_up (test.test_os.WalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 956, in test_walk_bottom_up self.assertEqual(len(all), 4, all) AssertionError: 5 != 4 : [('@test_24702_tmp/TEST1/SUB2/SUB21', [], ['tmp3']), ('@test_24702_tmp/TEST1/SUB2', ['link', 'SUB21'], ['tmp3', 'broken_link3', 'broken_link', 'broken_link2']), ('@test_24702_tmp/TEST1/SUB1/SUB11', [], []), ('@test_24702_tmp/TEST1/SUB1', ['SUB11'], ['tmp2']), ('@test_24702_tmp/TEST1', ['SUB2', 'SUB1'], ['tmp1'])] ====================================================================== FAIL: test_walk_prune (test.test_os.WalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 941, in test_walk_prune self.assertEqual(len(all), 2) AssertionError: 3 != 2 ====================================================================== FAIL: test_walk_topdown (test.test_os.WalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/angwer/cpython/Lib/test/test_os.py", line 916, in test_walk_topdown self.assertEqual(len(all), 4) AssertionError: 5 != 4 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28353> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com