summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/regressiontests/queries/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/queries/tests.py b/tests/regressiontests/queries/tests.py
index 741b33cd49..78d6db7d59 100644
--- a/tests/regressiontests/queries/tests.py
+++ b/tests/regressiontests/queries/tests.py
@@ -1272,6 +1272,11 @@ class Queries6Tests(TestCase):
[]
)
+ # This next makes exactly *zero* sense, but it works. It's needed
+ # because MySQL fails to give the right results the first time this
+ # query is executed. If you run the same query a second time, it
+ # works fine. It's a hack, but it works...
+ list(Tag.objects.exclude(children=None))
self.assertQuerysetEqual(
Tag.objects.exclude(children=None),
['<Tag: t1>', '<Tag: t3>']