mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Fixed #33627 -- Improved nonexistent pk in ModelMultipleChoiceFieldTests.test_model_multiple_choice_field().
This commit is contained in:
parent
856b528801
commit
27d52158b2
@ -2098,7 +2098,7 @@ class ModelMultipleChoiceFieldTests(TestCase):
|
||||
[self.c1, self.c2],
|
||||
)
|
||||
with self.assertRaises(ValidationError):
|
||||
f.clean(["100"])
|
||||
f.clean(["0"])
|
||||
with self.assertRaises(ValidationError):
|
||||
f.clean("hello")
|
||||
with self.assertRaises(ValidationError):
|
||||
|
Loading…
x
Reference in New Issue
Block a user