diff options
| author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 16:45:32 (GMT) |
|---|---|---|
| committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 16:45:32 (GMT) |
| commit | e643bed198edcf71e6bd67d056802a4e47b9ed2d (patch) | |
| tree | 16e568735d1b0fbfc60c8b9840098bd3a107284e /Lib/distutils/tests/test_config_cmd.py | |
| parent | f6f4b3084c65acde658bded07a020e8c3e446dfa (diff) | |
| download | cpython-e643bed198edcf71e6bd67d056802a4e47b9ed2d.zip cpython-e643bed198edcf71e6bd67d056802a4e47b9ed2d.tar.gz cpython-e643bed198edcf71e6bd67d056802a4e47b9ed2d.tar.bz2 | |
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.py | 15 |
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) |
