Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a Python 2.3 incompatibility.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9236d16b8013e3c71f57d43136be3b9640c56ee3 1 parent 3c64870
Malcolm Tredinnick authored August 12, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/test/testcases.py
2  django/test/testcases.py
@@ -88,7 +88,7 @@ def assertContains(self, response, text, count=None, status_code=200):
88 88
             self.assertEqual(real_count, count,
89 89
                 "Found %d instances of '%s' in response (expected %d)" % (real_count, text, count))
90 90
         else:
91  
-            self.assertTrue(real_count != 0, "Couldn't find '%s' in response" % text)
  91
+            self.failUnless(real_count != 0, "Couldn't find '%s' in response" % text)
92 92
                 
93 93
     def assertFormError(self, response, form, field, errors):
94 94
         "Assert that a form used to render the response has a specific field error"

0 notes on commit 9236d16

Please sign in to comment.
Something went wrong with that request. Please try again.