Skip to content

Commit

Permalink
[2.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 a9c0aa1 commit 05bc1c8
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 @@ -218,7 +218,7 @@ def test_subparser(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)

Expand Down

0 comments on commit 05bc1c8

Please sign in to comment.