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 jderose
Recipients jderose
Date 2013-12-29.00:50:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388278227.56.0.603151192526.issue20093@psf.upfronthosting.co.za>
In-reply-to
Content
Under Python 3.3, if renaming a directory with `os.rename()` when the destination is an existing, non-empty directory, like this:

os.rename('/tmp/foo', '/tmp/bar')

You'll get an OSError with a message like this:

OSError: [Errno 39] Directory not empty: '/tmp/bar'

However, in the current Python 3.4.0b1 package in Ubuntu Trusty, this error message will contain the source directory name instead of the destination directory name, like this:

OSError: [Errno 39] Directory not empty: '/tmp/foo'

I've attached a test case, which also covers renaming directories relative to an open directory descriptor. This test case works on Python 3.3, fails on Python 3.4 Beta1.
History
Date User Action Args
2013-12-29 00:50:27jderosesetrecipients: + jderose
2013-12-29 00:50:27jderosesetmessageid: <1388278227.56.0.603151192526.issue20093@psf.upfronthosting.co.za>
2013-12-29 00:50:27jderoselinkissue20093 messages
2013-12-29 00:50:27jderosecreate