diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-10-17 01:49:36 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-10-17 01:49:36 +0000 |
| commit | cd63ce077df6568a4c4420f1f28d27c93aae236f (patch) | |
| tree | 8da0b99f011b73a5381fb770eb232d33f722877e /tests/regressiontests/test_utils/python_25.py | |
| parent | d931f43b7081b88ae47adf32d32ccc005c1b8e43 (diff) | |
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
Diffstat (limited to 'tests/regressiontests/test_utils/python_25.py')
| -rw-r--r-- | tests/regressiontests/test_utils/python_25.py | 8 |
1 files changed, 3 insertions, 5 deletions
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: |
