diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-28 23:13:58 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-28 23:13:58 -0700 |
commit | 962917d34aaaea3b11eb33b3a5cabba787e0ac22 (patch) | |
tree | 82bbb1dc8a0a907c830a5da39de807b91a9c6407 /Lib/distutils/tests/test_build_ext.py | |
parent | a8549002879304e6cb115e5477ec9357e0394dd4 (diff) | |
download | cpython-962917d34aaaea3b11eb33b3a5cabba787e0ac22.tar.gz |
build_ext: correctly parse the link_objects user option (closes #1703178)
Patch by Valerie Lambert.
Diffstat (limited to 'Lib/distutils/tests/test_build_ext.py')
-rw-r--r-- | Lib/distutils/tests/test_build_ext.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index 4e397ea4c9..f3df564e37 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -195,6 +195,13 @@ class BuildExtTestCase(TempdirManager, cmd.finalize_options() self.assertEqual(cmd.rpath, ['one', 'two']) + # make sure cmd.link_objects is turned into a list + # if it's a string + cmd = build_ext(dist) + cmd.link_objects = 'one two,three' + cmd.finalize_options() + self.assertEqual(cmd.link_objects, ['one', 'two', 'three']) + # XXX more tests to perform for win32 # make sure define is turned into 2-tuples |