Django

Code

Changeset 7941

Show
Ignore:
Timestamp:
07/17/08 08:29:35 (4 months ago)
Author:
russellm
Message:

Refs #7745 -- Modified use of assertTrue to failUnless, because assertTrue isn't available in Python 2.3. Thanks to Karen Tracey for the report and patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/admin_scripts/tests.py

    r7921 r7941  
    109109    def assertOutput(self, stream, msg): 
    110110        "Utility assertion: assert that the given message exists in the output" 
    111         self.assertTrue(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream)) 
     111        self.failUnless(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream)) 
    112112 
    113113##########################################################################