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.
Created on 2015年03月29日 18:45 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 2475 | vstinner, 2017年06月28日 17:13 | ||
| Messages (5) | |||
|---|---|---|---|
| msg239506 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年03月29日 18:45 | |
Looks as a symlink on Windows 8 can has the FILE_ATTRIBUTE_DIRECTORY flag. http://buildbot.python.org/all/builders/AMD64%20Windows8%203.4/builds/348/steps/test/logs/stdio ====================================================================== FAIL: test_walk_bottom_up (test.test_os.WalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\buildarea3円.4.bolen-windows8\build\lib\test\test_os.py", line 802, in test_walk_bottom_up self.sub2_tree) AssertionError: Tuples differ: ('@test_3872_tmp\\TEST1\\SUB2', ['broken_link', 'link'], ['tmp3']) != ('@test_3872_tmp\\TEST1\\SUB2', ['link'], ['broken_link', 'tmp3']) First differing element 1: ['broken_link', 'link'] ['link'] - ('@test_3872_tmp\\TEST1\\SUB2', ['broken_link', 'link'], ['tmp3']) ? ---------- + ('@test_3872_tmp\\TEST1\\SUB2', ['link'], ['broken_link', 'tmp3']) ? ++++++++++ ====================================================================== FAIL: test_walk_prune (test.test_os.WalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\buildarea3円.4.bolen-windows8\build\lib\test\test_os.py", line 782, in test_walk_prune self.assertEqual(all[1], self.sub2_tree) AssertionError: Tuples differ: ('@test_3872_tmp\\TEST1\\SUB2', ['broken_link', 'link'], ['tmp3']) != ('@test_3872_tmp\\TEST1\\SUB2', ['link'], ['broken_link', 'tmp3']) First differing element 1: ['broken_link', 'link'] ['link'] - ('@test_3872_tmp\\TEST1\\SUB2', ['broken_link', 'link'], ['tmp3']) ? ---------- + ('@test_3872_tmp\\TEST1\\SUB2', ['link'], ['broken_link', 'tmp3']) ? ++++++++++ ====================================================================== FAIL: test_walk_topdown (test.test_os.WalkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\buildarea3円.4.bolen-windows8\build\lib\test\test_os.py", line 765, in test_walk_topdown self.assertEqual(all[3 - 2 * flipped], self.sub2_tree) AssertionError: Tuples differ: ('@test_3872_tmp\\TEST1\\SUB2', ['broken_link', 'link'], ['tmp3']) != ('@test_3872_tmp\\TEST1\\SUB2', ['link'], ['broken_link', 'tmp3']) First differing element 1: ['broken_link', 'link'] ['link'] - ('@test_3872_tmp\\TEST1\\SUB2', ['broken_link', 'link'], ['tmp3']) ? ---------- + ('@test_3872_tmp\\TEST1\\SUB2', ['link'], ['broken_link', 'tmp3']) ? ++++++++++ ---------------------------------------------------------------------- Create broken link: os.symlink('non_existing_patch', 'broken_link', target_is_directory=True) What return os.path.isdir('broken_link')? |
|||
| msg239510 - (view) | Author: Paul Moore (paul.moore) * (Python committer) | Date: 2015年03月29日 19:12 | |
It returns True. |
|||
| msg239514 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2015年03月29日 19:27 | |
Then tests should be adapted for Windows 8. |
|||
| msg261361 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2016年03月08日 14:13 | |
New changeset 19a3e0e664af by Serhiy Storchaka in branch '3.4': Issues #23808, #25911: Trying to fix walk tests on Windows. https://hg.python.org/cpython/rev/19a3e0e664af New changeset f9e22717722d by Serhiy Storchaka in branch '3.5': Issues #23808, #25911: Trying to fix walk tests on Windows. https://hg.python.org/cpython/rev/f9e22717722d New changeset da020e408c7f by Serhiy Storchaka in branch 'default': Issues #23808, #25911: Trying to fix walk tests on Windows. https://hg.python.org/cpython/rev/da020e408c7f |
|||
| msg312948 - (view) | Author: Alexey Izbyshev (izbyshev) * (Python triager) | Date: 2018年02月26日 20:20 | |
This behavior is not specific to just Windows 8. Symlinks to directories are treated as directories on Windows, in particular, they should be removed with RemoveDirectory, not DeleteFile. Is there any reason this issue is still open? |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:14 | admin | set | github: 67996 |
| 2018年02月26日 20:20:15 | izbyshev | set | nosy:
+ izbyshev messages: + msg312948 |
| 2017年06月28日 17:13:22 | vstinner | set | pull_requests: + pull_request2535 |
| 2016年03月08日 14:13:10 | python-dev | set | nosy:
+ python-dev messages: + msg261361 |
| 2015年12月20日 12:05:43 | serhiy.storchaka | set | type: behavior versions: + Python 3.6 |
| 2015年03月29日 19:27:32 | serhiy.storchaka | set | messages:
+ msg239514 stage: needs patch |
| 2015年03月29日 19:12:17 | paul.moore | set | messages: + msg239510 |
| 2015年03月29日 18:45:10 | serhiy.storchaka | create | |