aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/_distutils/tests
diff options
context:
space:
mode:
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)