diff options
| author | ?ric Araujo <merwok@netwok.org> | 2011-10-08 03:54:09 +0200 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2011-10-08 03:54:09 +0200 |
| commit | ed9fe83133b15a35776999ba2e500062cd706f81 (patch) | |
| tree | 5ecd2f0dc2fd9171afdb95b5007ecfb6b00e5eae | |
| parent | 28f9d8178a5d2564f673594ad43bb8085ec102ee (diff) | |
| download | disutils2-ed9fe83133b15a35776999ba2e500062cd706f81.tar.gz | |
Synchronize test_configure
| -rw-r--r-- | distutils2/_backport/tests/test_sysconfig.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/distutils2/_backport/tests/test_sysconfig.py b/distutils2/_backport/tests/test_sysconfig.py index b500419..9c77f66 100644 --- a/distutils2/_backport/tests/test_sysconfig.py +++ b/distutils2/_backport/tests/test_sysconfig.py @@ -3,7 +3,6 @@ import sys import subprocess import shutil from copy import copy -from ConfigParser import RawConfigParser from StringIO import StringIO from distutils2._backport import sysconfig @@ -261,8 +260,15 @@ class TestSysConfig(unittest.TestCase): # is similar to the global posix_prefix one base = get_config_var('base') user = get_config_var('userbase') + # the global scheme mirrors the distinction between prefix and + # exec-prefix but not the user scheme, so we have to adapt the paths + # before comparing (issue #9100) + adapt = sys.prefix != sys.exec_prefix for name in ('stdlib', 'platstdlib', 'purelib', 'platlib'): global_path = get_path(name, 'posix_prefix') + if adapt: + global_path = global_path.replace(sys.exec_prefix, sys.prefix) + base = base.replace(sys.exec_prefix, sys.prefix) user_path = get_path(name, 'posix_user') self.assertEqual(user_path, global_path.replace(base, user, 1)) |
