From 09a5f5aabe27f63ec8d8982efa6cef9bf7b86022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Tue, 13 Aug 2013 15:30:02 +0300 Subject: [PATCH] Fixed test failure on MySQL The fix for #20874 caused a MySQL specific failure. --- tests/queries/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/queries/tests.py b/tests/queries/tests.py index cd47f0ccd5d..a3558a06d47 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -88,13 +88,13 @@ class Queries1Tests(BaseQuerysetTest): qs2 = Tag.objects.filter(parent__in=qs1) qs3 = Tag.objects.filter(parent__in=qs2) self.assertEqual(qs3.query.subq_aliases, set(['T', 'U', 'V'])) - self.assertIn('V0', str(qs3.query)) + self.assertIn('v0', str(qs3.query).lower()) qs4 = qs3.filter(parent__in=qs1) self.assertEqual(qs4.query.subq_aliases, set(['T', 'U', 'V'])) # It is possible to reuse U for the second subquery, no need to use W. - self.assertNotIn('W0', str(qs4.query)) + self.assertNotIn('w0', str(qs4.query).lower()) # So, 'U0."id"' is referenced twice. - self.assertTrue(str(qs4.query).count('U0."id"'), 2) + self.assertTrue(str(qs4.query).lower().count('u0'), 2) def test_ticket1050(self): self.assertQuerysetEqual(