[New-bugs-announce] [issue12125] test_sysconfig fails on OpenIndiana because of test_packaging

STINNER Victor report at bugs.python.org
Fri May 20 02:08:50 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

It looks like a test of test_packaging removes some data from sysconfig._SCHEMES:

http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.x/builds/1239/steps/test/logs/stdio

======================================================================
ERROR: test_build_ext (packaging.tests.test_command_build_ext.BuildExtTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_command_build_ext.py", line 58, in test_build_ext
    cmd.ensure_finalized()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/command/cmd.py", line 104, in ensure_finalized
    self.finalize_options()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/command/build_ext.py", line 159, in finalize_options
    py_include = sysconfig.get_path('include')
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/sysconfig.py", line 436, in get_path
    return get_paths(scheme, vars, expand)[name]
KeyError: 'include'

...



======================================================================
ERROR: test_get_path (test.test_sysconfig.TestSysConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_sysconfig.py", line 110, in test_get_path
    res = get_path(name, scheme)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/sysconfig.py", line 436, in get_path
    return get_paths(scheme, vars, expand)[name]
KeyError: 'confdir'

***

I fixed a cleanup function in Lib/packaging/tests/test_command_install_data.py: commit [6267a4645f5f]. Let see if it does fix the bug or not.

----------
components: Tests
messages: 136342
nosy: haypo, tarek
priority: normal
severity: normal
status: open
title: test_sysconfig fails on OpenIndiana because of test_packaging
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12125>
_______________________________________


More information about the New-bugs-announce mailing list