This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients Mariatta, Samson Lee, hynek, loewis, neologix, python-dev, serhiy.storchaka, xiang.zhang
Date 2016-10-28.06:14:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477635267.78.0.946912523197.issue28353@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-10-28 06:14:27xiang.zhangsetrecipients: + xiang.zhang, loewis, neologix, python-dev, hynek, serhiy.storchaka, Samson Lee, Mariatta
2016-10-28 06:14:27xiang.zhangsetmessageid: <1477635267.78.0.946912523197.issue28353@psf.upfronthosting.co.za>
2016-10-28 06:14:27xiang.zhanglinkissue28353 messages
2016-10-28 06:14:27xiang.zhangcreate