Author: russellm
Date: 2011-01-18 10:42:24 -0600 (Tue, 18 Jan 2011)
New Revision: 15238
Modified:
django/trunk/tests/regressiontests/queries/tests.py
Log:
Refs #14661 -- Corrected (well... hacked around) a test failure under
MySQL/MyISAM with the queries regression test.
Modified: django/trunk/tests/regressiontests/queries/tests.py
===================================================================
--- django/trunk/tests/regressiontests/queries/tests.py 2011-01-18 00:00:11 UTC
(rev 15237)
+++ django/trunk/tests/regressiontests/queries/tests.py 2011-01-18 16:42:24 UTC
(rev 15238)
@@ -1277,6 +1277,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.