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_distutils fails with official Mac OS X Installer Disk Image (3.0.1) #49686

Closed
oefe mannequin opened this issue Mar 7, 2009 · 5 comments
Closed

test_distutils fails with official Mac OS X Installer Disk Image (3.0.1) #49686

oefe mannequin opened this issue Mar 7, 2009 · 5 comments
Assignees
Labels
OS-mac stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@oefe
Copy link
Mannequin

oefe mannequin commented Mar 7, 2009

BPO 5436
Nosy @birkenfeld, @ronaldoussoren, @tarekziade, @ned-deily

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 = 'https://github.com/tarekziade'
closed_at = <Date 2009-04-05.15:12:51.643>
created_at = <Date 2009-03-07.17:14:28.240>
labels = ['OS-mac', 'tests', 'type-bug', 'library']
title = 'test_distutils fails with official Mac OS X Installer Disk Image (3.0.1)'
updated_at = <Date 2009-04-05.15:12:51.641>
user = 'https://bugs.python.org/oefe'

bugs.python.org fields:

activity = <Date 2009-04-05.15:12:51.641>
actor = 'georg.brandl'
assignee = 'tarek'
closed = True
closed_date = <Date 2009-04-05.15:12:51.643>
closer = 'georg.brandl'
components = ['Distutils', 'macOS', 'Tests']
creation = <Date 2009-03-07.17:14:28.240>
creator = 'oefe'
dependencies = []
files = []
hgrepos = []
issue_num = 5436
keywords = []
message_count = 5.0
messages = ['83283', '83284', '84557', '84580', '85514']
nosy_count = 5.0
nosy_names = ['georg.brandl', 'ronaldoussoren', 'oefe', 'tarek', 'ned.deily']
pr_nums = []
priority = 'high'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue5436'
versions = ['Python 2.6', 'Python 3.0', 'Python 3.1', 'Python 2.7']

@oefe
Copy link
Mannequin Author

oefe mannequin commented Mar 7, 2009

Majestix:~ martina$ python3.0 -m test.regrtest test_distutils
Could not find '/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/test' in sys.path to remove it
test_distutils
test test_distutils failed -- Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/distutils/tests/test_sysconfig.py", line 45, in 
test_get_python_inc
    self.assert_(os.path.isdir(inc_dir), inc_dir)
AssertionError: /Users/ronald/Projects/python/bld/r301/Include

1 test failed:
test_distutils

@oefe oefe mannequin assigned tarekziade Mar 7, 2009
@oefe oefe mannequin added stdlib Python modules in the Lib dir OS-mac tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Mar 7, 2009
@tarekziade
Copy link
Mannequin

tarekziade mannequin commented Mar 7, 2009

That's because get_config_vars reads the src_dir
located in your Makefile (in config/Makefile):

srcdir=>>......./Users/ronald/Projects/python/bld/r301
VPATH=>.>......./Users/ronald/Projects/python/bld/r301

Moreover, the test is totally broken because it uses
"Include" which won't work under Windows in that case.

So basically, it will work only on a trunk version.

This test has to be reworked asap.

@ronaldoussoren
Copy link
Contributor

Tarek: I don't understand your comment. Both the tests and code in
distutils look correct to me, although one of them should be wrong given
the failure that Martina is seeing.

(I've check the code in Python's trunk and 3.x branch)

@ned-deily
Copy link
Member

I believe r69307, checked in after 3.0.1, removes the faulty test in test_get_python_inc so this failure no longer occurs on py3k builds snd
this issue can probably be closed.

@birkenfeld
Copy link
Member

Closing as fixed then.

@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
OS-mac stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants