summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2010-02-02 23:16:13 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2010-02-02 23:16:13 (GMT)
commitbd797687bd1b2608dab1aa4ea24f7591369ec462 (patch)
treef344b3900ae6c397b7a6737aa800e39c4ed12f57 /Lib/test/test_sysconfig.py
parentf06917ee6fe1ec1223831277abc0c4ad5e5d527e (diff)
downloadcpython-bd797687bd1b2608dab1aa4ea24f7591369ec462.zip
cpython-bd797687bd1b2608dab1aa4ea24f7591369ec462.tar.gz
cpython-bd797687bd1b2608dab1aa4ea24f7591369ec462.tar.bz2
Merged revisions 77919,77921-77922 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77919 | tarek.ziade | 2010-02-02 23:50:23 +0100 (Tue, 02 Feb 2010) | 1 line module reorganization + missing doctests ........ r77921 | tarek.ziade | 2010-02-02 23:54:28 +0100 (Tue, 02 Feb 2010) | 1 line sysconfig.get_scheme_names now returns a sorted tuple ........ r77922 | tarek.ziade | 2010-02-02 23:55:00 +0100 (Tue, 02 Feb 2010) | 1 line fixed a typo on distutils.sysconfig. thanks arfever ........
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r--Lib/test/test_sysconfig.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 8222aaf..0f8f89a 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -15,7 +15,8 @@ from test.support import run_unittest, TESTFN
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_default_scheme, _expand_vars,
+ get_scheme_names)
class TestSysConfig(unittest.TestCase):
@@ -232,6 +233,11 @@ class TestSysConfig(unittest.TestCase):
config_h = sysconfig.get_config_h_filename()
self.assertTrue(os.path.isfile(config_h), config_h)
+ def test_get_scheme_names(self):
+ wanted = ('nt', 'nt_user', 'os2', 'os2_home', 'posix_home',
+ 'posix_prefix', 'posix_user')
+ self.assertEquals(get_scheme_names(), wanted)
+
def test_main():
run_unittest(TestSysConfig)