Commit a21ea47b authored by Jason R. Coombs's avatar Jason R. Coombs

Move assert outside the context so it actually has its effect.

parent 7aa5abea
......@@ -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():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment