← Back to team overview

touch-packages team mailing list archive

[Bug 1264618] Re: Wrong OSError message from os.rename() when dst is a non-empty directory

 

3.4.0 has this fixed.  resolutions in http://bugs.python.org/issue16074
and http://bugs.python.org/issue20517


** Bug watch added: Python Roundup #20517
   http://bugs.python.org/issue20517

** Changed in: python3.4 (Ubuntu)
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python3.4 in Ubuntu.
https://bugs.launchpad.net/bugs/1264618

Title:
  Wrong OSError message from os.rename() when dst is a non-empty
  directory

Status in “python3.4” package in Ubuntu:
  Fix Released

Bug description:
  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 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.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: python3.4 3.4~b1-0ubuntu3
  ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
  Uname: Linux 3.12.0-7-generic x86_64
  ApportVersion: 2.12.7-0ubuntu3
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri Dec 27 19:57:28 2013
  SourcePackage: python3.4
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1264618/+subscriptions