diff --git a/tests/user_commands/tests.py b/tests/user_commands/tests.py index 45fe0aaf46..f3cbf8bbf1 100644 --- a/tests/user_commands/tests.py +++ b/tests/user_commands/tests.py @@ -218,7 +218,7 @@ class CommandTests(SimpleTestCase): self.assertIn('bar', out.getvalue()) def test_subparser_invalid_option(self): - msg = "Error: invalid choice: 'test' (choose from 'foo')" + msg = "invalid choice: 'test' (choose from 'foo')" with self.assertRaisesMessage(CommandError, msg): management.call_command('subparser', 'test', 12)