mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Relaxed some query ordering assertions in various tests.
It accounts for differences seen on MySQL with MyISAM storage engine.
This commit is contained in:
@@ -1272,7 +1272,7 @@ class MultiTableInheritanceTest(TestCase):
|
||||
with self.assertNumQueries(2):
|
||||
qs = BookReview.objects.prefetch_related("book")
|
||||
titles = [obj.book.title for obj in qs]
|
||||
self.assertEqual(titles, ["Poems", "More poems"])
|
||||
self.assertCountEqual(titles, ["Poems", "More poems"])
|
||||
|
||||
def test_m2m_to_inheriting_model(self):
|
||||
qs = AuthorWithAge.objects.prefetch_related("books_with_year")
|
||||
|
||||
Reference in New Issue
Block a user