Django

Code

Changeset 5858

Show
Ignore:
Timestamp:
08/11/07 21:14:52 (1 year ago)
Author:
mtredinnick
Message:

Fixed a Python 2.3 incompatibility.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/test/testcases.py

    r5739 r5858  
    8989                "Found %d instances of '%s' in response (expected %d)" % (real_count, text, count)) 
    9090        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) 
    9292                 
    9393    def assertFormError(self, response, form, field, errors):