Update comments.

Signed-off-by: James Tanner <tanner.jc@gmail.com>
This commit is contained in:
James Tanner 2024-03-19 15:56:19 -04:00
parent 888ad71d3c
commit 1353bfa236
No known key found for this signature in database
GPG Key ID: EB4645E850012701

View File

@ -219,8 +219,7 @@ class TestValidationErrorWithDjangoStyle(TestCase):
# mimic the logic in fields.Field.run_validators by saving the exception
# detail into a list which will then be the detail for a new ValidationError.
# this should not throw a KeyError or a TypeError even though
# the string has a substitutable substring ...
# this should not throw a ValueError on the date format placeholders ...
errors = []
try:
raise ValidationError(detail='Expects format %Y-%m-%d %H:%M:%S')