diff options
| author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 16:49:20 +0000 |
|---|---|---|
| committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 16:49:20 +0000 |
| commit | fe17289ba8c6ef976d19c69ac49cadce27ae1611 (patch) | |
| tree | 78af36665e1dfa04eed1eb05c0482c73318f694d /tests/test_config_cmd.py | |
| parent | ea43ebbadd370b5247b600b4b46053f358541259 (diff) | |
| download | python-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.py | 15 |
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) |
