]> granicus.if.org Git - python/commitdiff
Fix test_sysconfig when run from a Python installed under /site (#10086).
authorÉric Araujo <merwok@netwok.org>
Wed, 31 Aug 2011 14:48:17 +0000 (16:48 +0200)
committerÉric Araujo <merwok@netwok.org>
Wed, 31 Aug 2011 14:48:17 +0000 (16:48 +0200)
Patch by Hallvard B Furuseth.

Lib/test/test_sysconfig.py

index 2ea8819dc1f2302c2ad9498d172bbc1a2c8a53b4..b2a3224b1a4a3fefa3ab180465317316f467e1d6 100644 (file)
@@ -261,14 +261,14 @@ class TestSysConfig(unittest.TestCase):
             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