diff options
author | Éric Araujo <merwok@netwok.org> | 2011-08-31 14:48:17 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-08-31 14:48:17 (GMT) |
commit | 48e484fdde4295c755dd3d6df6d7f1633eb17f2b (patch) | |
tree | 66db5ad88d834cad385d1017681fc96295474382 /Lib/test/test_sysconfig.py | |
parent | e897e95880fc8688fd65c9a0df2d58a1817947ba (diff) | |
download | cpython-48e484fdde4295c755dd3d6df6d7f1633eb17f2b.zip cpython-48e484fdde4295c755dd3d6df6d7f1633eb17f2b.tar.gz cpython-48e484fdde4295c755dd3d6df6d7f1633eb17f2b.tar.bz2 |
Fix test_sysconfig when run from a Python installed under /site (#10086).
Patch by Hallvard B Furuseth.
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r-- | 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 index 2ea8819..b2a3224 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -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 |