Message207058
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. |
|
Date |
User |
Action |
Args |
2013-12-29 00:50:27 | jderose | set | recipients:
+ jderose |
2013-12-29 00:50:27 | jderose | set | messageid: <1388278227.56.0.603151192526.issue20093@psf.upfronthosting.co.za> |
2013-12-29 00:50:27 | jderose | link | issue20093 messages |
2013-12-29 00:50:27 | jderose | create | |
|