mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
committed by
Tim Graham
parent
888c1e9bfe
commit
d1bab24e01
@@ -553,9 +553,6 @@ class Queries1Tests(TestCase):
|
||||
s.reverse()
|
||||
params.reverse()
|
||||
|
||||
# This slightly odd comparison works around the fact that PostgreSQL will
|
||||
# return 'one' and 'two' as strings, not Unicode objects. It's a side-effect of
|
||||
# using constants here and not a real concern.
|
||||
d = Item.objects.extra(select=OrderedDict(s), select_params=params).values('a', 'b')[0]
|
||||
self.assertEqual(d, {'a': 'one', 'b': 'two'})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user