summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_config_cmd.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-04-12 16:49:20 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-04-12 16:49:20 (GMT)
commitbccb0c928f84c893ed58af649658267e674e864f (patch)
tree65783cee28ac618c3f4f8d1491dc6961b8fe48bc /Lib/distutils/tests/test_config_cmd.py
parentfd39b7aa6ea9b9f56cd438a9262bf6e822d0161c (diff)
downloadcpython-bccb0c928f84c893ed58af649658267e674e864f.zip
cpython-bccb0c928f84c893ed58af649658267e674e864f.tar.gz
cpython-bccb0c928f84c893ed58af649658267e674e864f.tar.bz2
Merged revisions 71528 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71528 | tarek.ziade | 2009-04-12 18:45:32 +0200 (Sun, 12 Apr 2009) | 1 line added a test for finalize_options ........
Diffstat (limited to 'Lib/distutils/tests/test_config_cmd.py')
-rw-r--r--Lib/distutils/tests/test_config_cmd.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_config_cmd.py b/Lib/distutils/tests/test_config_cmd.py
index af16d4c..45d480b 100644
--- a/Lib/distutils/tests/test_config_cmd.py
+++ b/Lib/distutils/tests/test_config_cmd.py
@@ -46,6 +46,21 @@ class ConfigTestCase(support.LoggingSilencer,
match = cmd.search_cpp(pattern='command', body='// xxx')
self.assertEquals(match, 1)
+ def test_finalize_options(self):
+ # finalize_options does a bit of transformation
+ # on options
+ pkg_dir, dist = self.create_dist()
+ cmd = config(dist)
+ cmd.include_dirs = 'one%stwo' % os.pathsep
+ cmd.libraries = 'one'
+ cmd.library_dirs = 'three%sfour' % os.pathsep
+ cmd.ensure_finalized()
+
+ self.assertEquals(cmd.include_dirs, ['one', 'two'])
+ self.assertEquals(cmd.libraries, ['one'])
+ self.assertEquals(cmd.library_dirs, ['three', 'four'])
+
+
def test_suite():
return unittest.makeSuite(ConfigTestCase)