[issue10086] test_sysconfig failure when prefix matches /site
Éric Araujo
report at bugs.python.org
Thu Jun 9 17:23:58 CEST 2011
Éric Araujo <merwok at netwok.org> added the comment:
> 1) sysconfig was originally distutils.sysconfig, and some duplication
> remains. Can’t this bug happen with distutils.sysconfig too? Should
> we duplicate tests from test_sysconfig to distutils.test_sysconfig?
I’ve looked into it and converting the test to distutils.sysconfig is not trivial: the get_path function is wholly different in distutils, and I’m not even sure it’s possible to get the paths like test_sysconfig does.
> 2) How to prevent a regression? That is, how to run tests with
> custom ./configure options?
I think I can commit this fix for a minor issue in a test without worrying about regressions. I manually tested and it’s fixed.
> Anyway, your patch does not catch a similar failure (if this can
> happen):
> base = "/site"
> global_path = "/site-nonsense/..."
If this can’t happen, let us not worry about it :)
----------
title: test_sysconfig failure with site-packages -> test_sysconfig failure when prefix matches /site
versions: +Python 3.3 -Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10086>
_______________________________________
More information about the Python-bugs-list
mailing list