Commit 03b12ae2 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Rewrote a test assertion so that it doesn't fail under Python 2.7. Thanks to...

Rewrote a test assertion so that it doesn't fail under Python 2.7. Thanks to Florian Apolloner for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent fffbbe40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class AssertNumQueriesTests(TestCase):
        with self.assertRaises(AssertionError) as exc_info:
            with self.assertNumQueries(2):
                Person.objects.count()
        self.assertEqual(str(exc_info.exception), "1 != 2 : 1 queries executed, 2 expected")
        self.assertIn("1 queries executed, 2 expected", str(exc_info.exception))

        with self.assertRaises(TypeError):
            with self.assertNumQueries(4000):