Skip to content

Commit

Permalink
[3.2.x] Fixed #33082 -- Fixed CommandTests.test_subparser_invalid_opt…
Browse files Browse the repository at this point in the history
…ion on Python 3.9.7+.

Thanks Michał Górny for the report.

Backport of 50ed545 from main.
  • Loading branch information
felixxm committed Sep 2, 2021
1 parent 707239e commit b61f44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/user_commands/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def test_subparser_dest_required_args(self):
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:
Expand Down

0 comments on commit b61f44c

Please sign in to comment.