cpython (3.2): Fix test_sysconfig when run from a Python installed under /site (#10086).
http://hg.python.org/cpython/rev/1e01543c3d0a changeset: 72151:1e01543c3d0a branch: 3.2 parent: 72143:942729c61684 user: Éric Araujo <merwok@netwok.org> date: Wed Aug 31 16:48:17 2011 +0200 summary: Fix test_sysconfig when run from a Python installed under /site (#10086). Patch by Hallvard B Furuseth. files: Lib/test/test_sysconfig.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -261,14 +261,14 @@ unlink(link) def test_user_similar(self): - # Issue 8759 : make sure the posix scheme for the users + # Issue #8759: make sure the posix scheme for the users # is similar to the global posix_prefix one base = get_config_var('base') user = get_config_var('userbase') for name in ('stdlib', 'platstdlib', 'purelib', 'platlib'): global_path = get_path(name, 'posix_prefix') user_path = get_path(name, 'posix_user') - self.assertEqual(user_path, global_path.replace(base, user)) + self.assertEqual(user_path, global_path.replace(base, user, 1)) def test_main(self): # just making sure _main() runs and returns things in the stdout -- Repository URL: http://hg.python.org/cpython
participants (1)
-
eric.araujo