diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-07 06:39:32 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-07 06:51:30 -0400 |
commit | a21ea47bf0a8bbd79afdbd93b80681f1133aedf0 (patch) | |
tree | 4ccf72d5e5deba5bb0b76df2b71c82ce0e99c611 | |
parent | 7aa5abeafc1e0b1b351c4c8ac7eb14c310366a46 (diff) | |
download | external_python_setuptools-a21ea47bf0a8bbd79afdbd93b80681f1133aedf0.tar.gz external_python_setuptools-a21ea47bf0a8bbd79afdbd93b80681f1133aedf0.tar.bz2 external_python_setuptools-a21ea47bf0a8bbd79afdbd93b80681f1133aedf0.zip |
Move assert outside the context so it actually has its effect.
-rw-r--r-- | distutils/tests/test_spawn.py | 2 |
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(): |