summaryrefslogtreecommitdiff
path: root/tests/test_config_cmd.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-04-12 16:49:20 +0000
committerTarek Ziadé <ziade.tarek@gmail.com>2009-04-12 16:49:20 +0000
commitfe17289ba8c6ef976d19c69ac49cadce27ae1611 (patch)
tree78af36665e1dfa04eed1eb05c0482c73318f694d /tests/test_config_cmd.py
parentea43ebbadd370b5247b600b4b46053f358541259 (diff)
downloadpython-setuptools-git-fe17289ba8c6ef976d19c69ac49cadce27ae1611.tar.gz
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 'tests/test_config_cmd.py')
-rw-r--r--tests/test_config_cmd.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_config_cmd.py b/tests/test_config_cmd.py
index af16d4c8..45d480ba 100644
--- a/tests/test_config_cmd.py
+++ b/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)