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_distutils fails with official Mac OS X Installer Disk Image (3.0.1)
Type: behavior Stage:
Components: Distutils, macOS, Tests Versions: Python 3.0, Python 3.1, Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: tarek Nosy List: georg.brandl, ned.deily, oefe, ronaldoussoren, tarek
Priority: high Keywords:

Created on 2009-03-07 17:14 by oefe, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg83283 - (view) Author: Martina Oefelein (oefe) Date: 2009-03-07 17:14
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
msg83284 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-03-07 18:01
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.
msg84557 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2009-03-30 14:58
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)
msg84580 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2009-03-30 16:54
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.
msg85514 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-04-05 15:12
Closing as fixed then.
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49686
2009-04-05 15:12:51georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg85514

resolution: fixed
2009-03-30 16:54:08ned.deilysetnosy: + ned.deily
messages: + msg84580
2009-03-30 14:58:59ronaldoussorensetnosy: + ronaldoussoren
messages: + msg84557
2009-03-07 18:01:21tareksetpriority: high
messages: + msg83284
versions: + Python 2.6, Python 3.1, Python 2.7
2009-03-07 17:14:28oefecreate