summaryrefslogtreecommitdiff
path: root/distutils/tests/test_spawn.py
diff options
context:
space:
mode:
Diffstat (limited to 'distutils/tests/test_spawn.py')
-rw-r--r--distutils/tests/test_spawn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/distutils/tests/test_spawn.py b/distutils/tests/test_spawn.py
index 704019a1..adaa48ef 100644
--- a/distutils/tests/test_spawn.py
+++ b/distutils/tests/test_spawn.py
@@ -129,7 +129,7 @@ class SpawnTestCase(support.TempdirManager,
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)
+ self.assertIn("command 'does-not-exist' failed", str(ctx.exception))
def test_suite():