From cd63ce077df6568a4c4420f1f28d27c93aae236f Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 17 Oct 2010 01:49:36 +0000 Subject: Corrected a suite of test failures when running under postgres. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14241 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/test_utils/python_25.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/regressiontests/test_utils/python_25.py') diff --git a/tests/regressiontests/test_utils/python_25.py b/tests/regressiontests/test_utils/python_25.py index a1e8a94d1e..c28ae68c2e 100644 --- a/tests/regressiontests/test_utils/python_25.py +++ b/tests/regressiontests/test_utils/python_25.py @@ -11,13 +11,11 @@ class AssertNumQueriesTests(TestCase): pass with self.assertNumQueries(1): - # Guy who wrote Linux - Person.objects.create(name="Linus Torvalds") + Person.objects.count() with self.assertNumQueries(2): - # Guy who owns the bagel place I like - Person.objects.create(name="Uncle Ricky") - self.assertEqual(Person.objects.count(), 2) + Person.objects.count() + Person.objects.count() def test_failure(self): with self.assertRaises(AssertionError) as exc_info: -- cgit v1.3