diff options
Diffstat (limited to 'tests/test_spawn.py')
| -rw-r--r-- | tests/test_spawn.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_spawn.py b/tests/test_spawn.py index 3647bab7..4ec767b1 100644 --- a/tests/test_spawn.py +++ b/tests/test_spawn.py @@ -124,6 +124,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']) + self.assertIn("command 'does-not-exist' failed", str(ctx.exception)) + def test_suite(): return unittest.makeSuite(SpawnTestCase) |
