Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618448 - dev-python/Babel-2.3.4 fails test: tests/test_dates.py:627: AssertionError
Summary: dev-python/Babel-2.3.4 fails test: tests/test_dates.py:627: AssertionError
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 617258
  Show dependency tree
 
Reported: 2017-05-14 12:42 UTC by Markus Meier
Modified: 2017-05-14 21:36 UTC (History)
0 users

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


Attachments
dev-python:Babel-2.3.4:20170513-194353.log (dev-python:Babel-2.3.4:20170513-194353.log,514.60 KB, text/x-log)
2017-05-14 12:42 UTC, Markus Meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2017-05-14 12:42:33 UTC
Created attachment 472576 [details]
dev-python:Babel-2.3.4:20170513-194353.log

Regression compared to current stable ebuild.

 * Package:    dev-python/Babel-2.3.4
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        arm elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_4 test userland_GNU
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox

>>> Test phase: dev-python/Babel-2.3.4
 * python2_7: running distutils-r1_run_phase python_test
============================================================================================================ test session starts =============================================================================================================
platform linux2 -- Python 2.7.12, pytest-3.0.3, py-1.4.30, pluggy-0.4.0
rootdir: /var/tmp/portage/dev-python/Babel-2.3.4/work/Babel-2.3.4, inifile: setup.cfg
plugins: xdist-1.15.0, cov-1.6, hypothesis-3.6.0, flaky-3.1.1
collected 597 items

babel/core.py ...................................................
babel/dates.py ...........................
babel/lists.py .
babel/localedata.py ..
babel/numbers.py ................
babel/plural.py ........
babel/support.py .........
babel/units.py .....
babel/util.py ..
babel/messages/catalog.py ...........
babel/messages/checkers.py .
babel/messages/extract.py ..
babel/messages/frontend.py ...
babel/messages/mofile.py .
babel/messages/plurals.py .
babel/messages/pofile.py ......
tests/test_core.py .......................................................
tests/test_date_intervals.py ........
tests/test_dates.py .......................................................F............
tests/test_day_periods.py .......
tests/test_languages.py ..
tests/test_lists.py .
tests/test_localedata.py .........
tests/test_numbers.py ...........................
tests/test_plural.py .............................................
tests/test_support.py .............................
tests/test_util.py .........
tests/messages/test_catalog.py .....................................
tests/messages/test_checkers.py ......
tests/messages/test_extract.py ..................................
tests/messages/test_frontend.py .................................................
tests/messages/test_js_extract.py ...........
tests/messages/test_jslexer.py .....
tests/messages/test_mofile.py ...
tests/messages/test_plurals.py ..........
tests/messages/test_pofile.py ....................................
===Flaky Test Report===


===End Flaky Test Report===

================================================================================================================== FAILURES ==================================================================================================================
___________________________________________________________________________________________________________ test_get_timezone_name ___________________________________________________________________________________________________________

    def test_get_timezone_name():
        dt = time(15, 30, tzinfo=timezone('America/Los_Angeles'))
        assert (dates.get_timezone_name(dt, locale='en_US') ==
                u'Pacific Standard Time')
        assert (dates.get_timezone_name(dt, locale='en_US', return_zone=True) ==
                u'America/Los_Angeles')
        assert dates.get_timezone_name(dt, width='short', locale='en_US') == u'PST'
    
        tz = timezone('America/Los_Angeles')
        assert dates.get_timezone_name(tz, locale='en_US') == u'Pacific Time'
        assert dates.get_timezone_name(tz, 'short', locale='en_US') == u'PT'
    
        tz = timezone('Europe/Berlin')
        assert (dates.get_timezone_name(tz, locale='de_DE') ==
                u'Mitteleurop\xe4ische Zeit')
        assert (dates.get_timezone_name(tz, locale='pt_BR') ==
                u'Hor\xe1rio da Europa Central')
    
        tz = timezone('America/St_Johns')
        assert dates.get_timezone_name(tz, locale='de_DE') == u'Neufundland-Zeit'
    
        tz = timezone('America/Los_Angeles')
        assert dates.get_timezone_name(tz, locale='en', width='short',
                                       zone_variant='generic') == u'PT'
        assert dates.get_timezone_name(tz, locale='en', width='short',
                                       zone_variant='standard') == u'PST'
        assert dates.get_timezone_name(tz, locale='en', width='short',
                                       zone_variant='daylight') == u'PDT'
        assert dates.get_timezone_name(tz, locale='en', width='long',
                                       zone_variant='generic') == u'Pacific Time'
        assert dates.get_timezone_name(tz, locale='en', width='long',
                                       zone_variant='standard') == u'Pacific Standard Time'
        assert dates.get_timezone_name(tz, locale='en', width='long',
                                       zone_variant='daylight') == u'Pacific Daylight Time'
    
>       assert (dates.get_timezone_name(None, locale='en_US') ==
                dates.get_timezone_name(datetime.now().replace(tzinfo=dates.LOCALTZ), locale='en_US'))
E       assert 'Central European Summer Time' == 'Central Europ...Standard Time'
E         - Central European Summer Time
E         ?                   ^^^^
E         + Central European Standard Time
E         ?                   ^^^^^ +

tests/test_dates.py:627: AssertionError
=========================================================================================================== pytest-warning summary ===========================================================================================================
WC1 None [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead.
WC1 None pytest_funcarg__cov: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WR1 /var/tmp/portage/dev-python/Babel-2.3.4/work/Babel-2.3.4/tests/test_plural.py:257 assertion is always true, perhaps remove parentheses?
========================================================================================= 1 failed, 596 passed, 3 pytest-warnings in 145.08 seconds ==========================================================================================
 * ERROR: dev-python/Babel-2.3.4::gentoo failed (test phase):
 *   (no error message)

Portage 2.3.5 (python 2.7.12-final-0, default/linux/arm/13.0/armv5te/desktop, gcc-5.4.0, glibc-2.23-r3, 3.10.25-gentoo armv5tel)
=================================================================
System uname: Linux-3.10.25-gentoo-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.3
KiB Mem:      513244 total,    291108 free
KiB Swap:    1535996 total,   1501104 free
Timestamp of repository gentoo: Mon, 08 May 2017 16:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 armv5tel-softfloat-linux-gnueabi [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.4_p6-r2::gentoo, 1.5-r2::gentoo, 1.6.3-r2::gentoo, 1.7.9-r3::gentoo, 1.8.5-r5::gentoo, 1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.1.100/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /etc/omega.conf /etc/stunnel/stunnel.conf /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=armv5te -pipe"
DISTDIR="/mnt/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=2 --keep-going --with-bdeps=y --backtrack=3"
FCFLAGS="-O2 -pipe -march=armv5te"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv5te"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv jpeg kpathsea lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl seccomp session spell ssl startup-notification svg tcpd test tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb v4 v5" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="exynos freedreno omap" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Mike Gilbert gentoo-dev 2017-05-14 21:02:48 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb4cddf622db5102bcac5b85a9f0e28a354d562f

commit fb4cddf622db5102bcac5b85a9f0e28a354d562f
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun May 14 17:01:17 2017 -0400

    dev-python/Babel: export TZ=UTC to work around buggy test code

    Bug: https://bugs.gentoo.org/618448
    Package-Manager: Portage-2.3.5_p32, Repoman-2.3.2_p62

 dev-python/Babel/Babel-2.3.4.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 2 Mike Gilbert gentoo-dev 2017-05-14 21:36:27 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b83bf742015ae680d8f26a28420cfcd49d2903c

commit 7b83bf742015ae680d8f26a28420cfcd49d2903c
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun May 14 17:35:40 2017 -0400

    dev-python/Babel: backport fix for buggy test

    Bug: https://bugs.gentoo.org/618448
    Package-Manager: Portage-2.3.5_p32, Repoman-2.3.2_p62

 dev-python/Babel/Babel-2.3.4.ebuild                |  6 +++--
 ...he-way-local-time-is-constructed-in-tests.patch | 30 ++++++++++++++++++++++
 2 files changed, 34 insertions(+), 2 deletions(-)