mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Updated patch applied in r12504. Refs #12806.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1d5165e3be
commit
7ca3e8fecf
2 changed files with 2 additions and 6 deletions
|
@ -196,8 +196,4 @@ class RawQueryTests(TestCase):
|
|||
first_two = Author.objects.raw(query)[0:2]
|
||||
self.assertEquals(len(first_two), 2)
|
||||
|
||||
try:
|
||||
Author.objects.raw(query)['test']
|
||||
self.fail('Index lookups should only accept int, long or slice')
|
||||
except TypeError:
|
||||
pass
|
||||
self.assertRaises(TypeError, lambda: Author.objects.raw(query)['test'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue