mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
Fixed nondeterministic ordering test failure in model_forms.
This commit is contained in:
parent
1bf5e79394
commit
2767ef3ca7
@ -1963,7 +1963,7 @@ class ModelMultipleChoiceFieldTests(TestCase):
|
||||
)
|
||||
article.categories.add(self.c2, self.c3)
|
||||
form = ArticleCategoriesForm(instance=article)
|
||||
self.assertEqual(form['categories'].value(), [self.c2.slug, self.c3.slug])
|
||||
self.assertCountEqual(form['categories'].value(), [self.c2.slug, self.c3.slug])
|
||||
|
||||
|
||||
class ModelOneToOneFieldTests(TestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user