Reasonably clean install emerge -pqv =dev-lang/python-2.6.4 [ebuild U ] dev-lang/python-2.6.4 [2.6.2-r1] USE="berkdb gdbm ipv6 ncurses readline sqlite* ssl threads xml -build -doc -examples -tk -ucs2 -wininst" 322 tests OK. 1 test failed: test_httpservers 37 tests skipped: test_aepack test_al test_applesingle test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_dl test_gl test_imageop test_imgfile test_kqueue test_linuxaudiodev test_macos test_macostools test_normalization test_ossaudiodev test_pep277 test_py3kwarn test_scriptpackages test_smtpnet test_socketserver test_startfile test_sunaudiodev test_timeout test_unicode_file test_urllib2net test_urllibnet test_winreg test_winsound test_zipfile64 Re-running failed tests in verbose mode Re-running test 'test_httpservers' in verbose mode test_command (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_handler (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_head_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_header_close (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_internal_key_error (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_request_line_trimming (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_return_custom_status (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_return_header_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_send_blank (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_bogus (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_digits (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_invalid (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_none (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_none_get (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_get (test.test_httpservers.SimpleHTTPServerTestCase) ... FAIL test_head (test.test_httpservers.SimpleHTTPServerTestCase) ... ok test_invalid_requests (test.test_httpservers.SimpleHTTPServerTestCase) ... ok test_authorization (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/CGIHTTPServer.py", line 255, in run_cgi OSError: [Errno 13] Permission denied FAIL test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/CGIHTTPServer.py", line 255, in run_cgi OSError: [Errno 13] Permission denied FAIL test_invaliduri (test.test_httpservers.CGIHTTPServerTestCase) ... ok test_post (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/CGIHTTPServer.py", line 255, in run_cgi OSError: [Errno 13] Permission denied FAIL ====================================================================== FAIL: test_get (test.test_httpservers.SimpleHTTPServerTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/test/test_httpservers.py", line 243, in test_get self.check_status_and_reason(response, 404) File "/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/test/test_httpservers.py", line 219, in check_status_and_reason self.assertEquals(response.status, status) AssertionError: 200 != 404 ====================================================================== FAIL: test_authorization (test.test_httpservers.CGIHTTPServerTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/test/test_httpservers.py", line 340, in test_authorization (res.read(), res.getheader('Content-type'), res.status)) AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 33351)\n----------------------------------------\n", None, 200) ====================================================================== FAIL: test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/test/test_httpservers.py", line 321, in test_headers_and_content (res.read(), res.getheader('Content-type'), res.status)) AssertionError: ('Hello World\n', 'text/html', 200) != ("Exception happened during processing of request from ('127.0.0.1', 58509)\n----------------------------------------\n", None, 200) ====================================================================== FAIL: test_post (test.test_httpservers.CGIHTTPServerTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/test/test_httpservers.py", line 328, in test_post self.assertEquals(res.read(), '1, python, 123456\n') AssertionError: "Exception happened during processing of request from ('127.0.0.1', 38776)\n----------------------------------------\n" != '1, python, 123456\n' ---------------------------------------------------------------------- Ran 21 tests in 11.000s FAILED (failures=4) test test_httpservers failed -- errors occurred; run in verbose mode for details make: *** [test] Error 1 emerge --info =dev-lang/python-2.6.4 Portage 2.1.7.4 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.11-r0, 2.6.31-gentoo-r5 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.31-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 13 Nov 2009 14:15:01 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.10.2, 1.11 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -mtune=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=native -mtune=native" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.ihug.co.nz/gentoo/" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://mirror.ihug.co.nz/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv idn ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd readline reflection session spl sqlite sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 210260 [details] python build.log
Created attachment 210261 [details] environment
Can you reproduce this bug with 2.6.2-r1? If you want to check it, then first downgrade to 2.6.2-r1 and next run: python2.6 /usr/lib64/python2.6/test/test_httpservers.py
(In reply to comment #3) > Can you reproduce this bug with 2.6.2-r1? > If you want to check it, then first downgrade to 2.6.2-r1 and next run: > python2.6 /usr/lib64/python2.6/test/test_httpservers.py > In the downgrade to 2.6.2-r1 only 1 error occurs: FAILED (failures=1) test test_urllib2_localnet failed -- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Lib/test/test_urllib2_localnet.py", line 477, in test_bad_address urllib2.urlopen, "http://sadflkjsasf.i.nvali.d/") AssertionError: IOError not raised This is a known one to me of course because 'invali.d' resolves on my network to a fallback ( domainname search + * alias ==> invali.d.my.lan ) Downgrading to 2.6.2-r1 and then running the tests by hand result as follows. su -l -s /bin/bash portage su: Authentication service cannot retrieve authentication info (Ignored) portage@ember-portage ~ $ whoami portage portage@ember-portage ~ $ python python python-config python-config-2.6 python-wrapper python2 python2.6 portage@ember-portage ~ $ python2.6 /usr/lib64/python2.6/test/test_httpservers.py test_command (__main__.BaseHTTPServerTestCase) ... ok test_handler (__main__.BaseHTTPServerTestCase) ... ok test_head_keep_alive (__main__.BaseHTTPServerTestCase) ... ok test_header_close (__main__.BaseHTTPServerTestCase) ... ok test_internal_key_error (__main__.BaseHTTPServerTestCase) ... ok test_request_line_trimming (__main__.BaseHTTPServerTestCase) ... ok test_return_custom_status (__main__.BaseHTTPServerTestCase) ... ok test_return_header_keep_alive (__main__.BaseHTTPServerTestCase) ... ok test_send_blank (__main__.BaseHTTPServerTestCase) ... ok test_version_bogus (__main__.BaseHTTPServerTestCase) ... ok test_version_digits (__main__.BaseHTTPServerTestCase) ... ok test_version_invalid (__main__.BaseHTTPServerTestCase) ... ok test_version_none (__main__.BaseHTTPServerTestCase) ... ok test_version_none_get (__main__.BaseHTTPServerTestCase) ... ok test_get (__main__.SimpleHTTPServerTestCase) ... ok test_head (__main__.SimpleHTTPServerTestCase) ... ok test_invalid_requests (__main__.SimpleHTTPServerTestCase) ... ok test_authorization (__main__.CGIHTTPServerTestCase) ... ok test_headers_and_content (__main__.CGIHTTPServerTestCase) ... ok test_invaliduri (__main__.CGIHTTPServerTestCase) ... ok test_post (__main__.CGIHTTPServerTestCase) ... ok ---------------------------------------------------------------------- Ran 21 tests in 10.980s OK
Tests from test_httpservers have been disabled. This bug might be related to e.g.: http://bugs.python.org/issue4528
I just hit this bug on python-3.1.2-r4...
(In reply to comment #6) > I just hit this bug on python-3.1.2-r4... Post the exact log please...