summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/raw_query/tests.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/modeltests/raw_query/tests.py b/tests/modeltests/raw_query/tests.py
index dbc5f88bb9..ceed67473f 100644
--- a/tests/modeltests/raw_query/tests.py
+++ b/tests/modeltests/raw_query/tests.py
@@ -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'])