diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 16:49:20 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-12 16:49:20 (GMT) |
commit | bccb0c928f84c893ed58af649658267e674e864f (patch) | |
tree | 65783cee28ac618c3f4f8d1491dc6961b8fe48bc /Lib/distutils/tests/test_config_cmd.py | |
parent | fd39b7aa6ea9b9f56cd438a9262bf6e822d0161c (diff) | |
download | cpython-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.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) |