Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_sysconfig fails on OpenIndiana because of test_packaging #56334

Closed
vstinner opened this issue May 20, 2011 · 5 comments
Closed

test_sysconfig fails on OpenIndiana because of test_packaging #56334

vstinner opened this issue May 20, 2011 · 5 comments
Labels
tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 12125
Nosy @jcea, @vstinner, @tarekziade, @merwok

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2011-05-30.16:49:34.884>
created_at = <Date 2011-05-20.00:08:50.368>
labels = ['tests']
title = 'test_sysconfig fails on OpenIndiana because of test_packaging'
updated_at = <Date 2011-05-30.16:49:34.883>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2011-05-30.16:49:34.883>
actor = 'tarek'
assignee = 'none'
closed = True
closed_date = <Date 2011-05-30.16:49:34.884>
closer = 'tarek'
components = ['Tests']
creation = <Date 2011-05-20.00:08:50.368>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 12125
keywords = []
message_count = 5.0
messages = ['136342', '136582', '136684', '137257', '137305']
nosy_count = 5.0
nosy_names = ['jcea', 'vstinner', 'tarek', 'eric.araujo', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue12125'
versions = ['Python 3.3']

@vstinner
Copy link
Member Author

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.

@vstinner vstinner added the tests Tests in the Lib/test dir label May 20, 2011
@vstinner
Copy link
Member Author

Issue bpo-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'

@tarekziade tarekziade mannequin self-assigned this May 23, 2011
@python-dev
Copy link
Mannequin

python-dev mannequin commented May 23, 2011

New changeset f86fdca477e3 by Tarek Ziade in branch 'default':
Issue bpo-12125: fixed the failures under Solaris due to improper test cleanup.
http://hg.python.org/cpython/rev/f86fdca477e3

@jcea
Copy link
Member

jcea commented May 30, 2011

Tarek, can you confirm that the bug is closed?. It is reported as "open" in the tracker.

Could you possibly close it, if appropiate?.

@tarekziade
Copy link
Mannequin

tarekziade mannequin commented May 30, 2011

I fixed it

@tarekziade tarekziade mannequin closed this as completed May 30, 2011
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

2 participants