Author: mtredinnick Date: 2009-03-19 20:37:34 -0500 (Thu, 19 Mar 2009) New Revision: 10100
Modified: django/trunk/django/test/testcases.py Log: Python 2.3 fix: assertTrue *still* doesn't exist in Python 2.3 The tests and testing framework should use failUnless() instead. Modified: django/trunk/django/test/testcases.py =================================================================== --- django/trunk/django/test/testcases.py 2009-03-20 01:37:11 UTC (rev 10099) +++ django/trunk/django/test/testcases.py 2009-03-20 01:37:34 UTC (rev 10100) @@ -278,7 +278,7 @@ """ if hasattr(response, 'redirect_chain'): # The request was a followed redirect - self.assertTrue(len(response.redirect_chain) > 0, + self.failUnless(len(response.redirect_chain) > 0, ("Response didn't redirect as expected: Response code was %d" " (expected %d)" % (response.status_code, status_code))) @@ -453,4 +453,4 @@ restore_transaction_methods() transaction.rollback() transaction.leave_transaction_management() - connection.close() \ No newline at end of file + connection.close() --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---