summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_build_ext.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-29 06:17:12 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-29 06:17:12 (GMT)
commit6224b678651bae90db24c5ad547e6c8930e55bdd (patch)
tree44dbcb3666c64275716e623f76fa098e60fd1673 /Lib/distutils/tests/test_build_ext.py
parent930825bddc18cd2b361f70b953e28b32bc9a71c6 (diff)
parent095e32bfc511ee823af3752507c7211a305c8c00 (diff)
downloadcpython-6224b678651bae90db24c5ad547e6c8930e55bdd.zip
cpython-6224b678651bae90db24c5ad547e6c8930e55bdd.tar.gz
cpython-6224b678651bae90db24c5ad547e6c8930e55bdd.tar.bz2
merge 3.6 (#1703178)
Diffstat (limited to 'Lib/distutils/tests/test_build_ext.py')
-rw-r--r--Lib/distutils/tests/test_build_ext.py7
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 47b586c..6be0ca2 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -194,6 +194,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