Created attachment 281275 [details] build log python-2.7.2-r2 fails the three tests argparse, asynchat and httpservers on my system. I'm using hardened-gcc-4.6.1 on ~amd64. The tests fail in the same way if I use vanilla-gcc-4.6.1. Trying python-2.7.1-r1 results in argparse succeeding and ansynchat, httpservers failing. httpservers is probably the same as bug 350968.
Created attachment 281277 [details] emerge --info
*** Bug 388303 has been marked as a duplicate of this bug. ***
Created attachment 292177 [details] diff patch @ portage/dev-lang/python-2.7.2-r2/work/Python-2.7.2 test_argparse test_asynchat test_httpservers archtester python # grep FEATURES /etc/make.conf FEATURES="userpriv usersandbox ....... See comment 5 of Bug 376745. The patch python-2.7.2-argparse.patch is a copy that patch, renamed. You may ofcourse prefer to rename the patch to python-argparse.patch so as to reduce /files by one files and ref it in ebuilds 2.7.2 and 3.2 by that name.
I still see a failure for asynchat with userspriv and usersandbox. I see currently additional failures for anydbm, socket and whichdb.
Apparently the dbm test failure is known and has been fixed upstream, learned from the python library Arfrever. That accounts for anydbm and whichdb. Well at least argparse is not showing up. As for, socket. a build log required. Must be some subtle use flag or background system setting.
Test socket is probably a failure specific to hardened. It fails with 'Permission denied: /proc/modules' and I'm building with userpriv, where /proc is not accessible.
Created attachment 293513 [details] build log with failing test socket
Created attachment 293515 [details] build log with failing tests socket and asynchat Sorry, the other build log was wrong (from sage-notebook).