diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-18 16:54:28 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-18 16:54:28 +0000 |
| commit | 86239cbb56cbc804c8c2961083476012a2da5cee (patch) | |
| tree | e04cbba94d2289bb824ffb63ca4a3f03bbbca059 | |
| parent | b305cc33c5827ac8daecbf7395fbccb196f92d47 (diff) | |
[1.2.X] Refs #14661 -- Corrected (well... hacked around) a test failure under MySQL/MyISAM with the queries regression test.
Backport of r15238 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/queries/tests.py | 5 |
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>'] |
