summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-28 23:13:58 -0700
committerBenjamin Peterson <benjamin@python.org>2016-09-28 23:13:58 -0700
commit0c6f3d33cd15a4558e437b70b0507f221f00e3eb (patch)
treef2d09a022cd56ebd1cb907dd8a1bb41a9c4491c7 /tests
parent84f35582fc98b213e51d9924ae9f726212069560 (diff)
downloadpython-setuptools-git-0c6f3d33cd15a4558e437b70b0507f221f00e3eb.tar.gz
build_ext: correctly parse the link_objects user option (closes #1703178)
Patch by Valerie Lambert.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_build_ext.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py
index 4e397ea4..f3df564e 100644
--- a/tests/test_build_ext.py
+++ b/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