dev-lang/python: force TZ=UTC for tests in 2.7
authorMike Gilbert <floppym@gentoo.org>
Thu, 23 Mar 2017 15:24:39 +0000 (11:24 -0400)
committerMike Gilbert <floppym@gentoo.org>
Thu, 23 Mar 2017 15:24:58 +0000 (11:24 -0400)
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
dev-lang/python/python-2.7.13.ebuild

index 005c8fe5bf5c861b6e3aa7230c60104ac1c906bd..47235ee36b7eb1210a95755d45300ac3f195003e 100644 (file)
@@ -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="$?"
index 8c26e45d469a614f6236e711941855a69fffb0dd..e69b79cab44495e827281a378bd40b171e3e89b7 100644 (file)
@@ -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="$?"