Author: russellm
Date: 2011-01-18 10:54:28 -0600 (Tue, 18 Jan 2011)
New Revision: 15240
Modified:
django/branches/releases/1.2.X/tests/regressiontests/queries/tests.py
Log:
[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.
Modified: django/branches/releases/1.2.X/tests/regressiontests/queries/tests.py
===================================================================
--- django/branches/releases/1.2.X/tests/regressiontests/queries/tests.py
2011-01-18 16:43:01 UTC (rev 15239)
+++ django/branches/releases/1.2.X/tests/regressiontests/queries/tests.py
2011-01-18 16:54:28 UTC (rev 15240)
@@ -1272,6 +1272,11 @@
[]
)
+ # 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>']
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.