aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/_distutils/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-07-05 16:54:26 -0400
committerGitHub <noreply@github.com>2020-07-05 16:54:26 -0400
commitaff64ae89e00e25fb3868bf528a14c18e7af0cf4 (patch)
tree96b44ccbccd4f80707de28b3262effa90b53c4fa /setuptools/_distutils/tests
parent5e179ffca0a6ed5f3369139baaea61094df38524 (diff)
parentd61166f01d3198a6d227acad616e0415108c9a0c (diff)
downloadexternal_python_setuptools-aff64ae89e00e25fb3868bf528a14c18e7af0cf4.tar.gz
external_python_setuptools-aff64ae89e00e25fb3868bf528a14c18e7af0cf4.tar.bz2
external_python_setuptools-aff64ae89e00e25fb3868bf528a14c18e7af0cf4.zip
Merge pull request #2236 from pypa/bugfix/2228-spawn-missing
Restore support for spawn when compiler is missing
Diffstat (limited to 'setuptools/_distutils/tests')
-rw-r--r--setuptools/_distutils/tests/test_spawn.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/_distutils/tests/test_spawn.py b/setuptools/_distutils/tests/test_spawn.py
index 919d0ad9..704019a1 100644
--- a/setuptools/_distutils/tests/test_spawn.py
+++ b/setuptools/_distutils/tests/test_spawn.py
@@ -126,6 +126,11 @@ class SpawnTestCase(support.TempdirManager,
rv = find_executable(program)
self.assertEqual(rv, filename)
+ def test_spawn_missing_exe(self):
+ with self.assertRaises(DistutilsExecError) as ctx:
+ spawn(['does-not-exist'])
+ assert 'command does-no-exist failed' in str(ctx)
+
def test_suite():
return unittest.makeSuite(SpawnTestCase)