Hallvard B Furuseth <h.b.furus...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10086>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to