according to https://code.djangoproject.com/ticket/16250 django has bug with running django tests when dev-python/psycopg-1.4.2 is used as database backend. Reproducible: Always
Before I go making patches; can you get the nature of the content straightened out first? Summary cites dev-python/psycopg-1.4.2. You cite dev-python/psycopg-1.4.2 in the Description. Hit the link, and Ticket #16250 (closed Bug: fixed) Last modified 5 weeks Error with new pyscopg2 2.4.2 release and tests culminating in The easiest solution is to use psycopg2 2.4.1. In summary, psycopg-1.4.2 ~= psycopg2 2.4.1.
So it appears you can not run project or app tests with psycopg-2.4.2 and Django 1.3.x. They do not intend on fixing this in the 1.3.x series since its an API change in psycopg. They recommend people just stick with psycopg-2.4.1 or go to Django 1.4.x. Or just skip their app/project tests on setups configured like this and run tests elsewhere. Not sure how we want to handle this in Gentoo. Maybe an ewarn in the Django package when installing with psycopg-2.4.2.
I should note this does not affect the Django test suite which is run with FEATURES=test during emerge.
All affected version of django and psycopg removed from tree. Please reopen if still exists.