From 708dbac70e89a216e6017dca6b5fa5c03e329409 Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Tue, 14 Jan 2014 10:09:11 +0000 Subject: [PATCH] Depending on pymongo it might raise a TypeError or ValueError --- tests/document/indexes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/document/indexes.py b/tests/document/indexes.py index ccf84636..cf6122a3 100644 --- a/tests/document/indexes.py +++ b/tests/document/indexes.py @@ -491,7 +491,7 @@ class IndexesTest(unittest.TestCase): def invalid_index_2(): return BlogPost.objects.hint(('tags', 1)) - self.assertRaises(TypeError, invalid_index_2) + self.assertRaises(Exception, invalid_index_2) def test_unique(self): """Ensure that uniqueness constraints are applied to fields.