Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376745 - dev-lang/python-3.2-r2 fails tests argparse asynchat httpservers and import
Summary: dev-lang/python-3.2-r2 fails tests argparse asynchat httpservers and import
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2011-07-28 14:56 UTC by Markus Walter
Modified: 2016-08-04 05:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build-dev-lang--python-3.2-r2-gcc-6.log,454.13 KB, text/plain)
2011-07-28 14:56 UTC, Markus Walter
Details
emerge --info (info.txt,5.37 KB, text/plain)
2011-07-28 14:57 UTC, Markus Walter
Details
unified diff ebuild patch (python-3.2-r2.patch,2.32 KB, patch)
2011-11-10 19:52 UTC, Ian Delaney (RETIRED)
Details | Diff
python-3.2-argparse.patch (python-3.2-argparse.patch,977 bytes, patch)
2011-11-11 05:26 UTC, Ian Delaney (RETIRED)
Details | Diff
unified diff ebuild patch (python-3.2-r2.patch,2.32 KB, patch)
2011-11-11 05:33 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2011-07-28 14:56:15 UTC
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.
Comment 1 Markus Walter 2011-07-28 14:56:47 UTC
Created attachment 281279 [details]
build log
Comment 2 Markus Walter 2011-07-28 14:57:01 UTC
Created attachment 281281 [details]
emerge --info
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-11-10 19:52:27 UTC
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
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2011-11-10 19:56:45 UTC
[ 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
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2011-11-11 05:26:36 UTC
Created attachment 292173 [details, diff]
python-3.2-argparse.patch

http://hg.python.org/cpython/rev/7697223df6df
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2011-11-11 05:33:07 UTC
Created attachment 292175 [details, diff]
unified diff ebuild patch

Includes both the usersandbox userpriv addition && the python-3.2-argparse.patch
Comment 7 Markus Walter 2011-11-14 14:54:10 UTC
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.
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2011-11-16 18:59:41 UTC
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.
Comment 9 Ian Delaney (RETIRED) gentoo-dev 2011-11-24 11:45:50 UTC
working version avail in overlay improvise