Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509950 - dev-lang/python-{2.7.7,3.4.0} fails tests: test_localtime_timezone
Summary: dev-lang/python-{2.7.7,3.4.0} fails tests: test_localtime_timezone
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2014-05-10 02:43 UTC by Patrick Lauer
Modified: 2018-04-21 21:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2014-05-10 02:43:04 UTC
test_tzset (test.test_time.TimeTestCase) ... ok

======================================================================
FAIL: test_localtime_timezone (test.test_time.TestPytime)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-3.4.0/work/Python-3.4.0/Lib/test/test_time.py", line 658, in test_localtime_timezone
    self.assertEqual(lt.tm_zone, time.tzname[lt.tm_isdst])
AssertionError: 'Local time zone must be set--see zic manual page' != 'Local tim'
- Local time zone must be set--see zic manual page
+ Local tim


----------------------------------------------------------------------
Ran 45 tests in 1.825s

FAILED (failures=1, skipped=2)
test test_time failed
Makefile:968: recipe for target 'test' failed
make: *** [test] Error 1
 * ERROR: dev-lang/python-3.4.0::gentoo failed (test phase):
 *   emake failed

Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.19, 3.14.2-gentoo x86_64)
=================================================================
System uname: Linux-3.14.2-gentoo-x86_64-AMD_A10-7700K_APU_with_Radeon-TM-_R7_Graphics-with-gentoo-2.2
KiB Mem:    15289828 total,  10443172 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo x11
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.stuhome.net/gentoo/ http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/home/portage"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11"
USE="X a52 aac acl acpi alsa amd64 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 gpm gtk iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline sdl session spell sqlite sse sse2 ssl startup-notification svg tcpd tiff tk truetype tty-helpers udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" 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" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Mike Gilbert gentoo-dev 2014-05-10 02:49:04 UTC
You should really replace /etc/localtime with a valid time zone file in your build environment.

If you really think this is a bug, report it upstream.
Comment 2 Mike Gilbert gentoo-dev 2014-05-10 02:54:04 UTC
If I have incorrectly assumed that /etc/localtime is still the factory default on your system, feel free to reopen this. ^_^
Comment 3 Mike Gilbert gentoo-dev 2014-05-10 03:22:13 UTC
Eh, maybe I'm being a bit hasty. It is easily reproduced by intentionally mis-configuring one's system; I'm just not sure that we should actually care.
Comment 4 Patrick Lauer gentoo-dev 2014-07-06 06:27:03 UTC
Same thing with 2.7, basically - it's almost funny in how it fails (cuts first 9 characters? eh whut)

======================================================================
ERROR: test_timezone (test.test_strptime.StrptimeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/test/test_strptime.py", line 300, in test_timezone
    strp_output = _strptime._strptime_time(strf_output, "%Z")
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/_strptime.py", line 328, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: e zone must be set--see zic manual page

======================================================================
ERROR: test_day_of_week_calculation (test.test_strptime.CalculationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/test/test_strptime.py", line 442, in test_day_of_week_calculation
    format_string)
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/_strptime.py", line 328, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: e zone must be set--see zic manual page

======================================================================
ERROR: test_gregorian_calculation (test.test_strptime.CalculationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/test/test_strptime.py", line 428, in test_gregorian_calculation
    format_string)
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/_strptime.py", line 328, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: e zone must be set--see zic manual page

======================================================================
ERROR: test_julian_calculation (test.test_strptime.CalculationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/test/test_strptime.py", line 419, in test_julian_calculation
    format_string)
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/_strptime.py", line 328, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: e zone must be set--see zic manual page

======================================================================
FAIL: test_timezone (test.test_strptime.LocaleTime_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Lib/test/test_strptime.py", line 78, in test_timezone
    (timezone, self.LT_ins.timezone))
AssertionError: timezone local time zone must be set--see zic manual page not found in (frozenset(['utc', 'local tim', 'gmt']), frozenset([]))

----------------------------------------------------------------------
Ran 46 tests in 0.043s
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 21:45:26 UTC
Mass closing of bugs reported against old versions of dev-lang/python.  If the problem still occurs with the current versions (i.e. newest in each visible slot), feel free to reopen.