commit: 2fb8cf8075a0a9dcc34c2515d22f0c2aa31bacef Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Thu Mar 23 15:24:39 2017 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Thu Mar 23 15:24:58 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fb8cf80
dev-lang/python: force TZ=UTC for tests in 2.7 Bug: https://bugs.gentoo.org/610628 Package-Manager: Portage-2.3.5_p2, Repoman-2.3.2_p32 dev-lang/python/python-2.7.12.ebuild | 7 ++++++- dev-lang/python/python-2.7.13.ebuild | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dev-lang/python/python-2.7.12.ebuild b/dev-lang/python/python-2.7.12.ebuild index 005c8fe5bf5..47235ee36b7 100644 --- a/dev-lang/python/python-2.7.12.ebuild +++ b/dev-lang/python/python-2.7.12.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="5" @@ -239,6 +239,11 @@ src_test() { mv "${S}"/Lib/test/test_${test}.py "${T}" done + # Daylight saving time problem + # https://bugs.python.org/issue22067 + # https://bugs.gentoo.org/610628 + local -x TZ=UTC + # Rerun failed tests in verbose mode (regrtest -w). emake test EXTRATESTOPTS="-w" < /dev/tty local result="$?" diff --git a/dev-lang/python/python-2.7.13.ebuild b/dev-lang/python/python-2.7.13.ebuild index 8c26e45d469..e69b79cab44 100644 --- a/dev-lang/python/python-2.7.13.ebuild +++ b/dev-lang/python/python-2.7.13.ebuild @@ -239,6 +239,11 @@ src_test() { mv "${S}"/Lib/test/test_${test}.py "${T}" done + # Daylight saving time problem + # https://bugs.python.org/issue22067 + # https://bugs.gentoo.org/610628 + local -x TZ=UTC + # Rerun failed tests in verbose mode (regrtest -w). emake test EXTRATESTOPTS="-w" < /dev/tty local result="$?"