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.

classification
Title: test_sysconfig fails on OpenIndiana because of test_packaging
Type: Stage:
Components: Tests Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: eric.araujo, jcea, python-dev, tarek, vstinner
Priority: normal Keywords:

Created on 2011-05-20 00:08 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg136342 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-05-20 00:08
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.
msg136582 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-05-23 00:32
Issue #12150 has been marked as a duplicate of this issue:

======================================================================
ERROR: test_get_path (test.test_sysconfig.TestSysConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/test_sysconfig.py", line 110, in test_get_path
    res = get_path(name, scheme)
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/sysconfig.py", line 436, in get_path
    return get_paths(scheme, vars, expand)[name]
KeyError: 'stdlib'

======================================================================
ERROR: test_user_similar (test.test_sysconfig.TestSysConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/test_sysconfig.py", line 281, in test_user_similar
    global_path = get_path(name, 'posix_prefix')
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/sysconfig.py", line 436, in get_path
    return get_paths(scheme, vars, expand)[name]
KeyError: 'stdlib'
msg136684 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-05-23 17:08
New changeset f86fdca477e3 by Tarek Ziade in branch 'default':
Issue #12125: fixed the failures under Solaris due to improper test cleanup.
http://hg.python.org/cpython/rev/f86fdca477e3
msg137257 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-05-30 11:37
Tarek, can you confirm that the bug is closed?. It is reported as "open" in the tracker.

Could you possibly close it, if appropiate?.
msg137305 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2011-05-30 16:49
I fixed it
History
Date User Action Args
2022-04-11 14:57:17adminsetgithub: 56334
2011-05-30 16:49:34tareksetstatus: open -> closed
resolution: fixed
messages: + msg137305
2011-05-30 11:37:11jceasetassignee: tarek ->
messages: + msg137257
2011-05-23 17:08:06python-devsetnosy: + python-dev
messages: + msg136684
2011-05-23 17:07:43tareksetassignee: tarek
2011-05-23 10:24:18eric.araujosetnosy: + eric.araujo
2011-05-23 00:47:21jceasetnosy: + jcea
2011-05-23 00:32:36vstinnersetmessages: + msg136582
2011-05-20 00:08:50vstinnercreate