Author: russellm Date: 2010-10-30 08:04:02 -0500 (Sat, 30 Oct 2010) New Revision: 14400
Modified: django/trunk/tests/regressiontests/test_utils/python_25.py Log: Rewrote a test assertion so that it doesn't fail under Python 2.7. Thanks to Florian Apolloner for the report. Modified: django/trunk/tests/regressiontests/test_utils/python_25.py =================================================================== --- django/trunk/tests/regressiontests/test_utils/python_25.py 2010-10-30 13:03:37 UTC (rev 14399) +++ django/trunk/tests/regressiontests/test_utils/python_25.py 2010-10-30 13:04:02 UTC (rev 14400) @@ -21,7 +21,7 @@ with self.assertRaises(AssertionError) as exc_info: with self.assertNumQueries(2): Person.objects.count() - self.assertEqual(str(exc_info.exception), "1 != 2 : 1 queries executed, 2 expected") + self.assertIn("1 queries executed, 2 expected", str(exc_info.exception)) with self.assertRaises(TypeError): with self.assertNumQueries(4000): -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@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.