summaryrefslogtreecommitdiff
path: root/tests/test_client_regress
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2018-03-30 09:42:45 +0100
committerTim Graham <timograham@gmail.com>2018-03-31 18:35:45 -0400
commit84ad721bd9fe7317530bde2b90ba002490717c27 (patch)
treec96163e66f5ed92c7d22691abacc09962b5c2593 /tests/test_client_regress
parent73cb62a33197652a3c8261dbf052d7eb75e26139 (diff)
downloaddjango-84ad721bd9fe7317530bde2b90ba002490717c27.tar.gz
Fixed #29275 -- Made assertFormError() output "(actual errors: none)" instead of "(actual errors: )".
Diffstat (limited to 'tests/test_client_regress')
-rw-r--r--tests/test_client_regress/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_client_regress/tests.py b/tests/test_client_regress/tests.py
index b35bad43a2..00e1b01766 100644
--- a/tests/test_client_regress/tests.py
+++ b/tests/test_client_regress/tests.py
@@ -631,7 +631,7 @@ class AssertFormErrorTests(SimpleTestCase):
except AssertionError as e:
self.assertIn(
"The form 'form' in context 0 does not contain the non-field "
- "error 'Some error.' (actual errors: )",
+ "error 'Some error.' (actual errors: none)",
str(e)
)
try:
@@ -639,7 +639,7 @@ class AssertFormErrorTests(SimpleTestCase):
except AssertionError as e:
self.assertIn(
"abc: The form 'form' in context 0 does not contain the "
- "non-field error 'Some error.' (actual errors: )",
+ "non-field error 'Some error.' (actual errors: none)",
str(e)
)