Author vstinner
Recipients barry, r.david.murray, vstinner
Date 2018-11-26.14:53:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543244008.28.0.788709270274.issue35317@psf.upfronthosting.co.za>
In-reply-to
Content
The two following tests fail on glibc-2.28.9000-19.fc30.x86_64 on Fedora Rawhide depending on the timezone.

Australia/Lord_Howe: ok
EDT4: fail
EST+05EDT,M3.2.0,M11.1.0: ok
Europe/Kiev: ok
Europe/Minsk: ok
MSK-03: fail
MST+07MDT,M4.1.0,M10.5.0: ok
STD-1DST,M3.2.0,M11.1.0: ok
STD-1DST,M4.1.0,M10.1.0: ok
UTC: fail

<mock-chroot> sh-4.4# TZ=UTC ./python -m test test_email -m 'test_localtime_daylight_*'  -v
== CPython 3.7.1 (default, Nov 26 2018, 15:33:31) [GCC 8.2.1 20181105 (Red Hat 8.2.1-5)]
== Linux-4.19.2-301.fc29.x86_64-x86_64-with-fedora-30-Rawhide little-endian
== cwd: /builddir/Python-3.7.1/build/test_python_9582
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 0.33 [1/1] test_email
test_localtime_daylight_false_dst_false (test.test_email.test_utils.LocaltimeTests) ... ok
test_localtime_daylight_false_dst_true (test.test_email.test_utils.LocaltimeTests) ... ERROR
test_localtime_daylight_true_dst_false (test.test_email.test_utils.LocaltimeTests) ... ok
test_localtime_daylight_true_dst_true (test.test_email.test_utils.LocaltimeTests) ... ERROR

======================================================================
ERROR: test_localtime_daylight_false_dst_true (test.test_email.test_utils.LocaltimeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/Python-3.7.1/Lib/test/test_email/test_utils.py", line 88, in test_localtime_daylight_false_dst_true
    t1 = utils.localtime(t0, isdst=1)
  File "/builddir/Python-3.7.1/Lib/email/utils.py", line 361, in localtime
    seconds = time.mktime(tm)
OverflowError: mktime argument out of range

======================================================================
ERROR: test_localtime_daylight_true_dst_true (test.test_email.test_utils.LocaltimeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/Python-3.7.1/Lib/test/test_email/test_utils.py", line 81, in test_localtime_daylight_true_dst_true
    t1 = utils.localtime(t0, isdst=1)
  File "/builddir/Python-3.7.1/Lib/email/utils.py", line 361, in localtime
    seconds = time.mktime(tm)
OverflowError: mktime argument out of range

----------------------------------------------------------------------

Ran 4 tests in 0.007s

FAILED (errors=2)
test test_email failed
test_email failed

== Tests result: FAILURE ==

1 test failed:
    test_email

Total duration: 259 ms
Tests result: FAILURE

<mock-chroot> sh-4.4# rpm -q glibc
glibc-2.28.9000-19.fc30.x86_64
<mock-chroot> sh-4.4# cat /etc/fedora-release 
Fedora release 30 (Rawhide)
<mock-chroot> sh-4.4# date
lun. nov. 26 14:53:14 UTC 2018
History
Date User Action Args
2018-11-26 14:53:28vstinnersetrecipients: + vstinner, barry, r.david.murray
2018-11-26 14:53:28vstinnersetmessageid: <1543244008.28.0.788709270274.issue35317@psf.upfronthosting.co.za>
2018-11-26 14:53:28vstinnerlinkissue35317 messages
2018-11-26 14:53:28vstinnercreate