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 2013年12月23日 14:48 by vajrasky, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| fix_test_shutil_with_admin_on_windows.patch | vajrasky, 2013年12月23日 14:48 | review | ||
| Messages (4) | |||
|---|---|---|---|
| msg206860 - (view) | Author: Vajrasky Kok (vajrasky) * | Date: 2013年12月23日 14:48 | |
Use administrator account and run Lib\test\test_shutil.py! You will get two failing tests. ====================================================================== FAIL: test_move_dangling_symlink (__main__.TestMove) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib\test\test_shutil.py", line 60, in wrap return func(*args, **kwargs) File "Lib\test\test_shutil.py", line 1557, in test_move_dangling_symlink self.assertEqual(os.path.realpath(src), os.path.realpath(dst_link)) AssertionError: 'C:\\Users\\compaq\\AppData\\Local\\Temp\\tmp9kkaex06\\baz' != ' C:\\Users\\compaq\\AppData\\Local\\Temp\\tmpuuretujv\\quux' - C:\Users\compaq\AppData\Local\Temp\tmp9kkaex06\baz ? ^^^^ ------ + C:\Users\compaq\AppData\Local\Temp\tmpuuretujv\quux ? ^^^ ++++++++ ====================================================================== FAIL: test_copymode_follow_symlinks (__main__.TestShutil) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib\test\test_shutil.py", line 298, in test_copymode_follow_symlinks self.assertEqual(os.stat(src).st_mode, os.stat(dst).st_mode) AssertionError: 33206 != 33060 ---------------------------------------------------------------------- Ran 85 tests in 0.872s FAILED (failures=2, skipped=12) Attached the patch which contains the explanation as well to fix the tests. |
|||
| msg206866 - (view) | Author: Zachary Ware (zach.ware) * (Python committer) | Date: 2013年12月23日 15:57 | |
See also issues #9949 and #15411. |
|||
| msg207127 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年01月01日 01:52 | |
New changeset 0f888589dbcd by Antoine Pitrou in branch '3.3': Issue #20055: Fix test_shutil under Windows with symlink privileges held. http://hg.python.org/cpython/rev/0f888589dbcd New changeset 6fd3d473e1c2 by Antoine Pitrou in branch 'default': Issue #20055: Fix test_shutil under Windows with symlink privileges held. http://hg.python.org/cpython/rev/6fd3d473e1c2 |
|||
| msg207128 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2014年01月01日 01:52 | |
Pushed, thank you! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:55 | admin | set | github: 64254 |
| 2018年08月13日 05:26:52 | berker.peksag | link | issue13837 superseder |
| 2014年07月24日 13:53:15 | zach.ware | set | messages: - msg223821 |
| 2014年07月24日 09:34:38 | python-dev | set | messages: + msg223821 |
| 2014年01月01日 01:52:31 | pitrou | set | status: open -> closed resolution: fixed messages: + msg207128 stage: patch review -> resolved |
| 2014年01月01日 01:52:10 | python-dev | set | nosy:
+ python-dev messages: + msg207127 |
| 2013年12月23日 15:57:00 | zach.ware | set | nosy:
+ zach.ware messages: + msg206866 |
| 2013年12月23日 14:53:06 | pitrou | set | nosy:
+ tarek, hynek stage: patch review |
| 2013年12月23日 14:48:44 | vajrasky | create | |