LD_LIBRARY_PATH=/var/tmp/portage/python-2.3.3-r2/work/Python-2.3.3: ./python -E -tt ./Lib/test/regrtest.py -l ... test_import test test_import crashed -- exceptions.ValueError: import from .pyc/.pyo failed: No module named @test test_tempfile test test_tempfile failed -- Traceback (most recent call last): File "/var/tmp/portage/python-2.3.3-r2/work/Python-2.3.3/Lib/test/test_tempfile.py", line 482, in test_mode self.assertEqual(mode, expected) File "/var/tmp/portage/python-2.3.3-r2/work/Python-2.3.3/Lib/unittest.py", line 302, in failUnlessEqual raise self.failureException, \ AssertionError: 1472 != 448 ... 224 tests OK. 2 tests failed: test_import test_tempfile 29 tests skipped: test_aepack test_al test_bsddb185 test_bsddb3 test_cd test_cl test_curses test_email_codecs test_gl test_imgfile test_largefile test_linuxaudiodev test_macfs test_macostools test_mpz test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_unicode_file test_urllibnet test_winreg test_winsound 1 skip unexpected on linux2: test_mpz make: *** [test] Error 1 !!! ERROR: dev-lang/python-2.3.3-r2 failed. !!! Function src_test, Line 572, Exitcode 0 !!! Make test failed. See above for details. !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge =dev-lang/python-2.3.3-r2 (python-2.3.4-r2 also fails with maketest (only testimport crashes) but someone has already filed that bug.) Portage 2.0.51-r15 (default-linux/sparc/sparc64/2004.3, gcc-3.3.5, glibc-2.3.3.20040420-r2, 2.4.29-sparc sparc64) =============================================================== == System uname: 2.4.29-sparc sparc64 sun4u Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 19 2004, 22:37:53)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.23 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=ultrasparc" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/ share/confi g /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=ultrasparc" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks fixpackages maketest sandbox test u serpriv usersandbox" GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ ftp://sunsite.ualberta.ca/pub/unix/Linux/ gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="sparc X arts berkdb bitmap-fonts crypt cups dlloader encode esd f77 fbcon font-server foomaticdb fortran gcc64 gdbm gif gnome gpm gtk gtk2 imap imlib jpeg kde libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt readline sdl slang spell ssl tcpd tiff truetype tr uetype-fonts type1-fonts xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
I just tried this with python-2.2.3-r6, same basic problem. So, that makes python-2.2.3-r6, python-2.3.3-r2, and python-2.3.4-r1 that all fail on test_import. test test_import crashed -- exceptions.ValueError: import from .pyc/.pyo failed: No module named @test 176 tests OK. 1 test failed: test_import 16 tests skipped: test_al test_cd test_cl test_curses test_dl test_email_codecs test_gl test_imgfile test_largefile test_linuxaudiodev test_nis test_socket_ssl test_socketserver test_sunaudiodev test_winreg test_winsound 1 skip unexpected on linux2: test_linuxaudiodev make: *** [test] Error 1 !!! ERROR: dev-lang/python-2.2.3-r6 failed. !!! Function src_test, Line 572, Exitcode 0 !!! Make test failed. See above for details. !!! If you need support, post the topmost build error, NOT this status message.
*** This bug has been marked as a duplicate of 67970 ***