aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--distutils/tests/test_spawn.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/distutils/tests/test_spawn.py b/distutils/tests/test_spawn.py
index 919d0ad9..704019a1 100644
--- a/distutils/tests/test_spawn.py
+++ b/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)