Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387967 - dev-lang/python-2.7.2-r3 suffers test failure at test_mhlib
Summary: dev-lang/python-2.7.2-r3 suffers test failure at test_mhlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue14561
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 06:24 UTC by Ian Delaney (RETIRED)
Modified: 2016-10-10 20:40 UTC (History)
0 users

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


Attachments
my emerge --info (emerge.info,4.86 KB, text/plain)
2011-10-21 06:26 UTC, Ian Delaney (RETIRED)
Details
the build log (build.log,165.32 KB, text/plain)
2011-10-21 06:27 UTC, Ian Delaney (RETIRED)
Details
mhlib.patch (mhlib.patch,1.29 KB, patch)
2011-11-11 09:50 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2011-10-21 06:24:15 UTC
Testing for stabalising python package

Reproducible: Always

Steps to Reproduce:
1. set FEATURES test
2. emerge package
3.
Actual Results:  

fails at test_mhlib

Expected Results:  
Pass

Re-running failed tests in verbose mode
Re-running test 'test_mhlib' in verbose mode
test_basic (test.test_mhlib.MhlibTests) ... ok
test_listfolders (test.test_mhlib.MhlibTests) ... FAIL

It seems to be pinned down to this one line in test that failed.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2011-10-21 06:26:10 UTC
Created attachment 290407 [details]
my emerge --info
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2011-10-21 06:27:58 UTC
Created attachment 290409 [details]
the build log
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-10-24 08:43:11 UTC
Can you try this again, from a fresh slate? Both mhlib and test_mhlib haven't changed in a very long time, so it seems pretty weird that they'd start failing now. Did I infer correctly that tests pass with python-2.7.1?
Comment 4 Claes 2011-11-01 12:38:00 UTC
Dirkjan, what exactly do you mean from a fresh slate? Just emerge again? I have attempted this several times now. Both 2.7.1-r1 and 2.7.2-r3 have this failure for me.

I don't know if I just didn't have FEATURES="test" when I emerged 2.7.1 the first time, or if somehow the problem depends on a changed environment.

#  emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.12.2-r0, 3.0.7-gentoo x86_64)
=================================================================
System uname: Linux-3.0.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 01 Nov 2011 10:30:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula AdobeFlash-10.1 google-talkplugin"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages multilib-strict news parallel-fetch parallel-install protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="sv_SE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en_GB sv"
MAKEOPTS="-j5"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd pulseaudio qt3support qt4 readline sdl semantic-desktop session spell sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs tcpd theora tiff truetype udev unicode usb vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" ELIBC="glibc" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LINGUAS="en_GB sv" NETBEANS_MODULES="apisupport php websvccommon" PHP_TARGETS="php5-3 php5-4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2011-11-11 09:47:21 UTC
ok, it comes down to this.  From test_mhlib.py

    def test_listfolders(self):
        mh = getMH()
        eq = self.assertEqual

#        tfolders.sort()                    \\ Line 184
#        eq(folders, tfolders)              \\ Line 185

Commenting them out removes the source of error. The lines that trips up include at least 185, 189, 193.  The 'folders' are not equal.
The easy way out.  With this patch in place, it 'gets thru' the mhlib test.

test_memoryview
test_mhlib
test_mimetools

The patch pinpoints the problem. Consider it a start or a token gesture.

Arfrever can likely sort this out and actually fix it.
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2011-11-11 09:50:41 UTC
Created attachment 292183 [details, diff]
mhlib.patch
Comment 7 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-12-01 11:04:36 UTC
This should get reported upstream and fixed there before we take a patch for it.
Comment 8 Patrice Clement gentoo-dev 2016-10-10 20:40:35 UTC
test_mhlib passes now with Python 2.7.11. Closing.