Permalink
Browse files

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
  • Loading branch information...
1 parent 3db76ff commit 5502fa59801c70094b6a2e789ece65aa7b31b58c @freakboy3742 freakboy3742 committed Jan 18, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/regressiontests/queries/tests.py
@@ -1277,6 +1277,11 @@ def test_tickets_8921_9188(self):
[]
)
+ # 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>']

0 comments on commit 5502fa5

Please sign in to comment.