I normally run tests for specific django apps, but I was curious and decided to run the entire test suite (which includes django tests) with
./manage.py test
The test suite freezes.
To find out why/where, I ran
./manage.py test -v 2
and it appears that the test stops working at
test_date_length (django.contrib.auth.tests.tokens.TokenGeneratorTest) ...
This behavior happens for both django 1.3 and django 1.4+ (trunk).
Would appreciate any pointers on why this is happening.
After some debugging, I discovered that this problem is a result of a Python (2.7) bug compiled by clang via MacPorts.
A loop that is executed by Python in Django code base during the execution of the TokenGeneratorTest
hangs on Python 2.7 compiled by clang (via MacPorts).
I recompiled my Python 2.7 with apple-gcc-4.2 and this while loop no longer freezes when given a large i value.