Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Refs #7745 -- Modified use of assertTrue to failUnless, because asser…

…tTrue isn't available in Python 2.3. Thanks to Karen Tracey for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7941 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c4d0cfe1eeff3bfec364ba59d23aaff8be093267 1 parent 1107e6b
Russell Keith-Magee authored July 17, 2008
2  tests/regressiontests/admin_scripts/tests.py
@@ -108,7 +108,7 @@ def assertNoOutput(self, stream):
108 108
         self.assertEquals(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
109 109
     def assertOutput(self, stream, msg):
110 110
         "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))
112 112
 
113 113
 ##########################################################################
114 114
 # DJANGO ADMIN TESTS

0 notes on commit c4d0cfe

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