Hi all, I've just uploaded a patch for #12991, adding support for unittest2 to Django.
This is a very big patch (500kb, 12k lines). For this reason, I've uploaded the patch compressed. Trac won't allow attachments greater than 200k, and given past history, large diffs break Trac anyway. However, the patch consists entirely of little changes. It does the following: * Introduces a copy of the unittest2 0.5.1 library to django.utils * Modify Django's imports to use "django.utils.unittest", rather than "import unittest" * Introducing the use of the @skipIf decorator for various DB and library-specific tests * Updating all the deprecated assertions, like failIf, failUnless, assert_, assertEquals, etc. If anyone can spare the time, I'd appreciate you taking this patch for a spin. This needs to be tested on as many Python versions as possible; I've validated that it works on Python 2.6, but it needs to work on Python 2.4, 2.5 and 2.7 as well, and I don't have ready access to machines with those setups. The patch also needs to be tested when unittest2 has been installed locally. If a locally installed version is present (or you have Python 2.7), that version will be used in preference to Django's builtin version. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.