Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a Python 2.3 incompatibility.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9236d16b8013e3c71f57d43136be3b9640c56ee3 1 parent 3c64870
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/test/
2  django/test/
@@ -88,7 +88,7 @@ def assertContains(self, response, text, count=None, status_code=200):
self.assertEqual(real_count, count,
"Found %d instances of '%s' in response (expected %d)" % (real_count, text, count))
- self.assertTrue(real_count != 0, "Couldn't find '%s' in response" % text)
+ self.failUnless(real_count != 0, "Couldn't find '%s' in response" % text)
def assertFormError(self, response, form, field, errors):
"Assert that a form used to render the response has a specific field error"
Please sign in to comment.
Something went wrong with that request. Please try again.