summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_build_ext.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2019-02-05 01:15:13 (GMT)
committerGitHub <noreply@github.com>2019-02-05 01:15:13 (GMT)
commit85e102a2b090dd693d0801ae2edb9660cfa0f281 (patch)
tree0735adb3d875561dd3f6f266253db336fb122788 /Lib/distutils/tests/test_build_ext.py
parent69091cb497b2f0fe7e2789b30b43cf78caf9de9b (diff)
downloadcpython-85e102a2b090dd693d0801ae2edb9660cfa0f281.zip
cpython-85e102a2b090dd693d0801ae2edb9660cfa0f281.tar.gz
cpython-85e102a2b090dd693d0801ae2edb9660cfa0f281.tar.bz2
bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)
Diffstat (limited to 'Lib/distutils/tests/test_build_ext.py')
-rw-r--r--Lib/distutils/tests/test_build_ext.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index a722182..88847f9 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -177,10 +177,12 @@ class BuildExtTestCase(TempdirManager,
cmd.finalize_options()
py_include = sysconfig.get_python_inc()
- self.assertIn(py_include, cmd.include_dirs)
+ for p in py_include.split(os.path.pathsep):
+ self.assertIn(p, cmd.include_dirs)
plat_py_include = sysconfig.get_python_inc(plat_specific=1)
- self.assertIn(plat_py_include, cmd.include_dirs)
+ for p in plat_py_include.split(os.path.pathsep):
+ self.assertIn(p, cmd.include_dirs)
# make sure cmd.libraries is turned into a list
# if it's a string