summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-01-18 16:42:24 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-01-18 16:42:24 +0000
commit5502fa59801c70094b6a2e789ece65aa7b31b58c (patch)
tree7810a36fca6c7c48875417823cb4272e368c3705
parent3db76ff2d05f5470788dd71f3cbc175e167e52a1 (diff)
Refs #14661 -- Corrected (well... hacked around) a test failure under MySQL/MyISAM with the queries regression test.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-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 c5fa18e9d6..9993acf942 100644
--- a/tests/regressiontests/queries/tests.py
+++ b/tests/regressiontests/queries/tests.py
@@ -1277,6 +1277,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>']