summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2010-05-19 22:25:00 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2010-05-19 22:25:00 (GMT)
commit06710a84217092cba587310690d350ef5d974002 (patch)
tree5ea3765567a55eb3262d767401f139b6f488f478 /Lib/test/test_sysconfig.py
parent45cceeb6084f957c0bca32af767bf0ad6370fd5b (diff)
downloadcpython-06710a84217092cba587310690d350ef5d974002.zip
cpython-06710a84217092cba587310690d350ef5d974002.tar.gz
cpython-06710a84217092cba587310690d350ef5d974002.tar.bz2
Merged revisions 81371 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81371 | tarek.ziade | 2010-05-20 00:20:14 +0200 (Thu, 20 May 2010) | 1 line #8759: Fixed user paths in sysconfig for posix and os2 schemes ........
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r--Lib/test/test_sysconfig.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 7abff0d..968f3de 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -17,7 +17,7 @@ import sysconfig
from sysconfig import (get_paths, get_platform, get_config_vars,
get_path, get_path_names, _INSTALL_SCHEMES,
_get_default_scheme, _expand_vars,
- get_scheme_names)
+ get_scheme_names, get_config_var)
class TestSysConfig(unittest.TestCase):
@@ -254,6 +254,15 @@ class TestSysConfig(unittest.TestCase):
finally:
unlink(link)
+ def test_user_similar(self):
+ # 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.assertEquals(user_path, global_path.replace(base, user))
def test_main():
run_unittest(TestSysConfig)