[issue10086] test_sysconfig failure with site-packages
Hallvard B Furuseth
report at bugs.python.org
Tue Nov 2 11:28:34 CET 2010
Hallvard B Furuseth <h.b.furuseth at usit.uio.no> added the comment:
,AC�ric Araujo writes:
> Attaching a patch with your two suggestions.
> Added file: http://bugs.python.org/file19264/fix10086.diff
Not quite, since I suggested
global_path.startswith(os.path.join(base, ""))
instead of
global_path.startswith(base)
I should have mentioned, the join appends a directory terminator
to base. Not sure if that's the correct way to do it. Anyway,
your patch does not catch a similar failure (if this can happen):
base = "/site"
global_path = "/site-nonsense/..."
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10086>
_______________________________________
More information about the Python-bugs-list
mailing list