diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-02 10:56:56 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-02 11:06:10 +0200 |
| commit | 05bc1c81aa590bcbd508bdeafb16d1884c92b4ea (patch) | |
| tree | 33aad95ab47745000dbc6642ae538872568852d5 | |
| parent | a9c0aa11e778bd3a72863ae2084f9a7f3f08d064 (diff) | |
[2.2.x] Fixed #33082 -- Fixed CommandTests.test_subparser_invalid_option on Python 3.9.7+.
Thanks Michał Górny for the report.
Backport of 50ed545e2fa02c51e0d1559b83624f256e4b499b from main.
| -rw-r--r-- | tests/user_commands/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
