Author: mtredinnick
Date: 2007-08-11 21:14:52 -0500 (Sat, 11 Aug 2007)
New Revision: 5858

Modified:
   django/trunk/django/test/testcases.py
Log:
Fixed a Python 2.3 incompatibility.


Modified: django/trunk/django/test/testcases.py
===================================================================
--- django/trunk/django/test/testcases.py       2007-08-12 01:25:18 UTC (rev 
5857)
+++ django/trunk/django/test/testcases.py       2007-08-12 02:14:52 UTC (rev 
5858)
@@ -88,7 +88,7 @@
             self.assertEqual(real_count, count,
                 "Found %d instances of '%s' in response (expected %d)" % 
(real_count, text, count))
         else:
-            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"


--~--~---------~--~----~------------~-------~--~----~
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