Title: test_packaging failures
Type: behavior Stage: needs patch
Components: Library (Lib), Tests Versions: Python 3.3
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: eric.araujo, pitrou, python-dev, r.david.murray, vstinner
Priority: critical Keywords:

Created on 2011-06-12 13:54 by pitrou, last changed 2011-06-17 14:11 by vstinner. This issue is now closed.

Messages (6)
msg138207 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-06-12 13:54
The 3.x buildbots are red following the latest commits:

ERROR: test_cfg_to_args (packaging.tests.test_util.UtilTestCase)
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/", line 499, in test_cfg_to_args
    self.write_file('setup.cfg', SETUP_CFG % opts)
  File "/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/", line 163, in write_file
UnicodeEncodeError: 'ascii' codec can't encode character '\xc9' in position 114: ordinal not in range(128)

FAIL: test_user_site (packaging.tests.test_command_install_dist.InstallTestCase)
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/", line 93, in test_user_site
  File "/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/packaging/tests/", line 122, in _test_user_site
AssertionError: False is not true
msg138218 - (view) Author: Roundup Robot (python-dev) Date: 2011-06-12 20:08
New changeset 9eecfeaa591a by Éric Araujo in branch 'default':
Specify the encoding of the setup.cfg in one packaging test (#12320)
msg138221 - (view) Author: Roundup Robot (python-dev) Date: 2011-06-12 21:03
New changeset 0e22c47b47a3 by Éric Araujo in branch 'default':
Also specify encoding when reading setup.cfg (#12320)
msg138482 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-06-17 00:15
See also:

There are many OSError(22, 'Invalid argument: ...') errors on rmdir(). Example:

ERROR: test_cfg_to_args (packaging.tests.test_util.UtilTestCase)
Traceback (most recent call last):
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/packaging/tests/", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/packaging/tests/", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/packaging/tests/", line 128, in tearDown
    shutil.rmtree(self._basetempdir, in ('nt', 'cygwin'))
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/", line 285, in rmtree
OSError: [Errno 22] Invalid argument: '/tmp/tmp2le6q5/tmpg5rur7'
msg138487 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-06-17 02:06
Victor, that failure was already reported in issue 12333.
msg138512 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-06-17 14:11
I fixed the issue #12333. I don't see any test_packaging failure anymore, let's close this issue.
Date User Action Args
2011-06-17 14:11:47vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg138512
2011-06-17 02:06:31r.david.murraysetnosy: + r.david.murray
messages: + msg138487
2011-06-17 00:15:07vstinnersetnosy: + vstinner
messages: + msg138482
2011-06-12 21:03:11python-devsetmessages: + msg138221
2011-06-12 20:08:42python-devsetnosy: + python-dev
messages: + msg138218
2011-06-12 13:54:56pitroucreate