summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2012-05-20 00:53:08 -0400
committer?ric Araujo <merwok@netwok.org>2012-05-20 00:53:08 -0400
commitccac6d901da2334a65bfa69333796d0b350a23c4 (patch)
tree10671dd26b49b46e594408ef256c0d1949894055
parent7b719c5bc765f6e18c968f360a5fb315dcc8a1ac (diff)
downloaddisutils2-ccac6d901da2334a65bfa69333796d0b350a23c4.tar.gz
Tighten tests for #13399
-rw-r--r--distutils2/tests/test_run.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/distutils2/tests/test_run.py b/distutils2/tests/test_run.py
index 7f37c44..cc58818 100644
--- a/distutils2/tests/test_run.py
+++ b/distutils2/tests/test_run.py
@@ -106,26 +106,26 @@ class RunTestCase(support.TempdirManager,
# sadly this message comes straight from the getopt module and can't be
# modified to use repr instead of str for the unknown option; to be
# changed when the command line parsers are replaced by something clean
- self.assertEqual(err.splitlines()[-1],
- 'error: option --unknown not recognized')
+ self.assertEqual(err.splitlines(),
+ ['error: option --unknown not recognized'])
def test_invalid_command(self):
out, err = self.call_pysetup_fail('run', 'com#mand')
self.assertGreater(out, 1)
- self.assertEqual(err.splitlines()[-1],
- "error: invalid command name 'com#mand'")
+ self.assertEqual(err.splitlines(),
+ ["error: invalid command name 'com#mand'"])
def test_unknown_command(self):
out, err = self.call_pysetup_fail('run', 'invalid_command')
self.assertGreater(out, 1)
- self.assertEqual(err.splitlines()[-1],
- "error: command 'invalid_command' not recognized")
+ self.assertEqual(err.splitlines(),
+ ["error: command 'invalid_command' not recognized"])
def test_unknown_action(self):
out, err = self.call_pysetup_fail('invalid_action')
self.assertGreater(out, 1)
- self.assertEqual(err.splitlines()[-1],
- "error: action 'invalid_action' not recognized")
+ self.assertEqual(err.splitlines(),
+ ["error: action 'invalid_action' not recognized"])
def test_suite():