Author: russellm
Date: 2008-07-17 08:29:35 -0500 (Thu, 17 Jul 2008)
New Revision: 7941

Modified:
   django/trunk/tests/regressiontests/admin_scripts/tests.py
Log:
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.

Modified: django/trunk/tests/regressiontests/admin_scripts/tests.py
===================================================================
--- django/trunk/tests/regressiontests/admin_scripts/tests.py   2008-07-17 
13:24:05 UTC (rev 7940)
+++ django/trunk/tests/regressiontests/admin_scripts/tests.py   2008-07-17 
13:29:35 UTC (rev 7941)
@@ -108,7 +108,7 @@
         self.assertEquals(len(stream), 0, "Stream should be empty: actually 
contains '%s'" % stream)
     def assertOutput(self, stream, msg):
         "Utility assertion: assert that the given message exists in the output"
-        self.assertTrue(msg in stream, "'%s' does not match actual output text 
'%s'" % (msg, stream))
+        self.failUnless(msg in stream, "'%s' does not match actual output text 
'%s'" % (msg, stream))
 
 ##########################################################################
 # DJANGO ADMIN TESTS


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to