diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-15 10:14:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-15 10:16:06 +0100 |
| commit | d4c9dab74bc29c240c33879a1167e5fd0971c7bc (patch) | |
| tree | 69170334d9a11a4e85ef50e02f408609cd845ea9 /django | |
| parent | d84cd91e90cb0871e43f98cba8c53be99053e903 (diff) | |
Refs #33348 -- Fixed SimpleTestCase.assertFormError() error message raised for unbound forms.
Diffstat (limited to 'django')
| -rw-r--r-- | django/test/testcases.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index 1acc39fd76..5533c01db4 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -566,7 +566,7 @@ class SimpleTestCase(unittest.TestCase): def _assert_form_error(self, form, field, errors, msg_prefix, form_repr): if not form.is_bound: self.fail( - f"{msg_prefix} The {form_repr} is not bound, it will never have any " + f"{msg_prefix}The {form_repr} is not bound, it will never have any " f"errors." ) |
