====================================================================== FAIL: testFloor (test.test_math.MathTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Lib/test/test_math.py", line 309, in testFloor self.ftest('floor(1.23e167)', math.floor(1.23e167), 1.23e167) File "/var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Lib/test/test_math.py", line 57, in ftest (name, value, expected)) AssertionError: floor(1.23e167) returned 1.2299999999999997e+167, expected 1.2299999999999999e+167 ---------------------------------------------------------------------- Ran 39 tests in 8.942s FAILED (failures=1) test test_math 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_math.py", line 309, in testFloor self.ftest('floor(1.23e167)', math.floor(1.23e167), 1.23e167) File "/var/tmp/portage/dev-lang/python-2.6.2-r1/work/Python-2.6.2/Lib/test/test_math.py", line 57, in ftest (name, value, expected)) AssertionError: floor(1.23e167) returned 1.2299999999999997e+167, expected 1.2299999999999999e+167 # emerge --info Portage 2.1.6.13 (default/linux/alpha/2008.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30.5 alpha) ================================================================= System uname: Linux-2.6.30.5-alpha-EV68AL-with-gentoo-2.0.1 Timestamp of tree: Tue, 25 Aug 2009 11:45:01 +0000 distcc 3.1 alpha-unknown-linux-gnu [enabled] app-shells/bash: 4.0_p28 dev-lang/python: 2.4.6, 2.6.2-r1, 3.1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="alpha ~alpha" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -pipe -O2 -mcpu=ev67" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-mieee -pipe -O2 -mcpu=ev67" DISTDIR="/usr/portage/distfiles" FEATURES="distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans usepkg userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j4" 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://rsync5.de.gentoo.org/gentoo-portage" USE="X acl alpha alsa apache2 audiofile bash-completion berkdb bmp bzip2 calendar cdparanoia cdr cli cracklib crypt dio dri encode ethereal exif ffmpeg fftw firefox flac fortran ftp gdbm gpm iconv imlib2 isdnlog jpeg kdeenablefinal libcaca lua mad matroska mmap mng moznocompose moznoirc moznomail mozsvg mpeg mudflap ncurses network-cron nls nptl nptlonly offensive ogg openmp pam pcre pdflib perl png pnm ppds pppd python rar readline recode reflection session sharedmem sockets sox spl ssl svg sysfs szip tcpd tetex theora truetype unicode usb v4l v4l2 vcd vidix vim vim-pager vlm vorbis xcb xorg xosd xpm xvid zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga glint mga nvidia vesa r128 " Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS This may be related to bug 264335
I just now tested with 3.1.1's test suite and that fails in the same way.
test_math.py is now skipped.
How is it acceptable to just not run the part of the test suite that's failing? Does anyone else think that's a bit ridiculous? This bug is due to bug 264335 -- one with a patch to fix it. But no one on toolchain@ seems interested in doing anything with it. This obviously isn't a python bug, don't disable the test_math.py. That's just silly. Reopening so that someone sees this.
Ran test suite: no failures with patched glibc. Please reenable test and close this bug.
(In reply to comment #3) > How is it acceptable to just not run the part of the test suite that's > failing? Only test_math.py was temporarily disabled. Disabling particular parts of given test file would require creating conditionally applied patch and needless bumping whole patchsets. test_pow.py has been disabled for over 15 months. Anyway there is over 360 other test files. There is nothing in this bug which would be interesting for QA, but maybe they like receiving more e-mails...
(In reply to comment #0 and comment #1) The reporter: Could you confirm that all tests from test_math.py and test_pow.py pass after deletion of the following line from the 2.6.2-r1 and 3.1.1 ebuilds?: [[ ${ARCH} == "alpha" ]] && skip_tests+=" math pow"
I noticed that sys-libs/glibc-2.9_p20081201-r3 isn't stable yet on alpha. Do you prefer that tests of dev-lang/python fail with stable versions of sys-libs/glibc for some time or do you prefer to quickly stabilize sys-libs/glibc-2.9_p20081201-r3 on alpha?
We're going to quickly stabilize -r3, as its main difference between -r2 is a regression fix for the stuff that caused the math/pow tests to fail. I've filed a stabilization bug for -r3 on alpha, bug 283188.
After upgrading glibc to the version with the fixed, I tried the most recent versions of python (i.e. 3.1.1, 2.6.2-r2, 2.5.4-r3, 2.4.6) and all of them now pass both test_math and test_pow, so the special-casing for alpha on these ebuilds can be removed (the patched glibc will go to stable today).
test_math.py and test_pow.py have been reenabled on alpha.