Kaydet (Commit) 5502fa59 authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Refs #14661 -- Corrected (well... hacked around) a test failure under…

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
üst 3db76ff2
......@@ -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>']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment