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 francismb
Recipients francismb, hynek, serhiy.storchaka, tarek
Date 2014-02-10.22:03:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392069811.52.0.561771496867.issue19856@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-02-10 22:03:31francismbsetrecipients: + francismb, tarek, hynek, serhiy.storchaka
2014-02-10 22:03:31francismbsetmessageid: <1392069811.52.0.561771496867.issue19856@psf.upfronthosting.co.za>
2014-02-10 22:03:31francismblinkissue19856 messages
2014-02-10 22:03:31francismbcreate