[issue10086] test_sysconfig failure with site-packages
Hallvard B Furuseth
report at bugs.python.org
Thu Oct 14 17:02:03 CEST 2010
Hallvard B Furuseth <h.b.furuseth at usit.uio.no> added the comment:
It's with 'purelib' because my prefix "/site" matches "/site-packages".
This fixes it for me, but maybe you should also assert that
global_path.startswith(os.path.join(base, "")).
--- Lib/test/test_sysconfig.py~ 2010-09-20
+++ Lib/test/test_sysconfig.py 2010-10-14
@@ -278 +278 @@ class TestSysConfig(unittest.TestCase):
- self.assertEquals(user_path, global_path.replace(base, user))
+ self.assertEquals(user_path, global_path.replace(base, user, 1))
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10086>
_______________________________________
More information about the Python-bugs-list
mailing list