Francisco Martín Brugué added the comment: I've applied the patch manually to 2.7. Then I've done the tests again (notice test_A traceback):
test_A: >>> import os, shutil >>> os.makedirs('foo') >>> os.makedirs('bar/foo') >>> shutil.move('foo/', 'bar/') Traceback (most recent call last): File "<pyshell#13>", line 1, in <module> shutil.move('foo/', 'bar/') File "D:\programs\Python27\lib\shutil.py", line 292, in move raise Error, "Destination path '%s' already exists" % real_dst Error: Destination path 'bar/foo' already exists test_B: >>> os.makedirs('foo') >>> os.makedirs('bar/foo') >>> shutil.move('foo', 'bar/') Traceback (most recent call last): File "<pyshell#19>", line 1, in <module> shutil.move('foo', 'bar/') File "D:\programs\Python27\lib\shutil.py", line 292, in move raise Error, "Destination path '%s' already exists" % real_dst Error: Destination path 'bar/foo' already exists test_C: >>> os.makedirs('foo') >>> os.makedirs('bar/foo') >>> shutil.move('foo\\', 'bar/') Traceback (most recent call last): File "<pyshell#22>", line 1, in <module> shutil.move('foo\\', 'bar/') File "D:\programs\Python27\lib\shutil.py", line 292, in move raise Error, "Destination path '%s' already exists" % real_dst Error: Destination path 'bar/foo' already exists ---------- Added file: http://bugs.python.org/file34028/shutil_move_dir_altsep_python27.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19856> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com