python-3.2-r2 fails the four tests argparse, asynchat, httpservers and import 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-3.1.4-r2 results in argparse, import succeeding and ansynchat, httpservers failing. httpservers is probably the same as bug 350972.
Created attachment 281279 [details] build log
Created attachment 281281 [details] emerge --info
Created attachment 292141 [details, diff] unified diff ebuild patch After much testing, the patch upstream to fix the argparse I tried but didn't succeed. The argparse test need be run as user. With FEATUERS=usrpriv, it still fails. It seem it needs both userpriv and usersandbox. Patch submitted does so. With aprgparse sorted, the others also passed test. Perhaps needs some more general testing
[ 16/347] test_argparse 324 tests OK. 23 tests skipped: 4 skips unexpected on linux2: test_tcl test_tk test_ttk_guionly test_ttk_textonly sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='a' encoding='UTF-8'> * The following tests have been skipped: * test_distutils.py * test_gdb.py Unless someone can demo persistent failures of asynchat httpservers and import, this could be closed
Created attachment 292173 [details, diff] python-3.2-argparse.patch http://hg.python.org/cpython/rev/7697223df6df
Created attachment 292175 [details, diff] unified diff ebuild patch Includes both the usersandbox userpriv addition && the python-3.2-argparse.patch
I'm using userpriv and usersandbox FEATURES right now and I don't see any failures for argparse anymore. But I still see a failure for asynchat. And there are now new failures for dbm and socket.
hmmm; gentoo64 python # ebuild python-3.2-r2.ebuild test gentoo64 python # grep asynchat /mnt/gen2/tmpdir/portage/dev-lang/python-3.2-r2/temp/build.log [ 19/347] test_asynchat [ 19/347] test_asynchat shows they passed. FAILED (failures=1, errors=4) test test_dbm failed -- multiple errors occurred; yes, the new victim to test failure is the dbm. [261/347] test_socket [262/347] test_socketserver test_socketserver skipped -- Use of the `network' resource not enabled test_ossaudiodev test_pep277 test_smtpnet test_socketserver [261/347] test_socket [262/347] test_socketserver test_socketserver skipped -- Use of the `network' resource not enabled test_ossaudiodev test_pep277 test_smtpnet test_socketserver socket content also passes here.
working version avail in overlay improvise