summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-02 10:56:56 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-02 10:59:30 +0200
commitb61f44c339830ea53663415f00cbd17e2fd5aa43 (patch)
tree051c50d368f2af388fbe68496cf41ce733e38b52 /tests
parent707239eabf377ac30c38ce8a0ab37996d0bea4c6 (diff)
[3.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.
Diffstat (limited to 'tests')
-rw-r--r--tests/user_commands/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/user_commands/tests.py b/tests/user_commands/tests.py
index 9262e2717a..9e242bc8d5 100644
--- a/tests/user_commands/tests.py
+++ b/tests/user_commands/tests.py
@@ -334,7 +334,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)
if PY37: