Not sure if this is helpfull, but here goes... To run test.py I did the following:
Overlay: http://thinkflat.com/files/public/?d=/ebuilds/mod_python user# sudo emerge -a mod_python user# tar zxvf mod_python-3.2.5b.tgz user# cd mod_python-3.2.5b user# ./configure --with-apxs=/usr/sbin/apxs2 user# cp /usr/lib/apache2/modules/mod_python.so src user# cd test && python test.py After which I received the following results: Gentoo (current) Apache 2.0.54 Python 2.4 GCC 3.3.6 *Note: I don't have "ab" which is needed for the global_lock test?* ====================================================================== FAIL: test_Session_Session (__main__.PerRequestTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test.py", line 1472, in test_Session_Session self.fail("session did not set a cookie") AssertionError: session did not set a cookie ---------------------------------------------------------------------- Ran 43 tests in 19.479s FAILED (failures=1, errors=1) F Stopping Apache... /usr/sbin/apache2 -k stop -f /home/jmcfarlane/Desktop/mod_python-3.2.5b/test/conf/test.conf ====================================================================== FAIL: test_global_lock (__main__.PerInstanceTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test.py", line 1747, in test_global_lock self.fail("global_lock is broken (too quick)") AssertionError: global_lock is broken (too quick) ====================================================================== FAIL: testPerRequestTests (__main__.PerInstanceTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test.py", line 1805, in testPerRequestTests self.failUnless(result.wasSuccessful()) AssertionError ---------------------------------------------------------------------- Ran 6 tests in 44.204s FAILED (failures=2) Cheers, John M.