diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-14 12:12:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 12:12:13 +0200 |
commit | 1760ad4e8cdbf34a0f38deae300460a0b9c38eac (patch) | |
tree | 1815c8c1f40069c434fb38e2487036afd64bece5 /tests/m2m_recursive | |
parent | 08f30d1b6ac9b7bc05857f88a70277d5ceb27ba1 (diff) | |
download | django-1760ad4e8cdbf34a0f38deae300460a0b9c38eac.tar.gz |
Relaxed some query ordering assertions in various tests.
It accounts for differences seen on MySQL with MyISAM storage engine.
Diffstat (limited to 'tests/m2m_recursive')
-rw-r--r-- | tests/m2m_recursive/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/m2m_recursive/tests.py b/tests/m2m_recursive/tests.py index d5ebb500c1..e018434327 100644 --- a/tests/m2m_recursive/tests.py +++ b/tests/m2m_recursive/tests.py @@ -104,7 +104,7 @@ class RecursiveSymmetricalM2MThroughTests(TestCase): "first_meet": datetime.date(2013, 1, 5), }, ) - self.assertSequenceEqual(self.a.colleagues.all(), [self.b, self.c, self.d]) + self.assertCountEqual(self.a.colleagues.all(), [self.b, self.c, self.d]) self.assertSequenceEqual(self.b.colleagues.all(), [self.a]) def test_recursive_m2m_remove(self): |