From unknown Sat Jun 14 19:35:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#46294: python-arrow timezone test failure Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Feb 2021 12:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46294 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46294@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161244289518493 (code B ref -1); Thu, 04 Feb 2021 12:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Feb 2021 12:48:15 +0000 Received: from localhost ([127.0.0.1]:40171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7e3T-0004oC-23 for submit@debbugs.gnu.org; Thu, 04 Feb 2021 07:48:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:59366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7e3Q-0004o3-Im for submit@debbugs.gnu.org; Thu, 04 Feb 2021 07:48:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7e3Q-0000Xz-2G for bug-guix@gnu.org; Thu, 04 Feb 2021 07:48:12 -0500 Received: from mout02.posteo.de ([185.67.36.66]:36313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7e3K-0001Bq-O6 for bug-guix@gnu.org; Thu, 04 Feb 2021 07:48:11 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id DE729240100 for ; Thu, 4 Feb 2021 13:48:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1612442882; bh=dCzQ9rGOWAoEtqYX1VNfTkxAFJMbmjpv4iqe1Zi/4nY=; h=From:To:Subject:Date:From; b=niRJ2E0ofLym5iP9S3C0wAeNJR/9URYOvs7B3YoB4+YhDmtfLLpY/k8R2vy3wc2AA 8egB9HZkqtV8FwicQevR/rAXdR3UJ2/JyDZZ67NuuLAWijUkM/H6OTMBJRHYiTf2YF T00NGHM2KP4dlO/s70ncMzxt28XL3LZzeM5JnjJx4b2HV1EdimpbSxTBm+2N4AwefP 60Z5W7W7673mAiXjefpquriYSnP6B7KS5M/WJF0065EBgIHYmX2xTNuzhuEuDa4Fv4 8gyyAGoi8oL7sQ67Q0LE98uybVzF6/Ttfnra8kjk6UJh6q91XWd+mYR6WmvUBYbsgJ bK3GemDejx8qQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DWdcx68xTz9rxM for ; Thu, 4 Feb 2021 13:48:01 +0100 (CET) User-agent: mu4e 1.4.14; emacs 27.1 From: Guillaume Le Vaillant Date: Thu, 04 Feb 2021 13:47:59 +0100 Message-ID: <87o8h06lts.fsf@yamatai> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, The python-arrow package currently fails to build because the "test_parse_tz_name_zzz" test is failing. This is with Guix at eae865c134ebb8b7432572288e8721794d6a9b87. I'm not very familiar with Python, so does someone know how to fix this? Here's the relevant part of the build log: =2D-8<---------------cut here---------------start------------->8--- _________ TestDateTimeParserParse.test_parse_tz_name_zzz[America/Nuuk] ____= _____ self =3D full_tz_name =3D 'America/Nuuk' @pytest.mark.parametrize("full_tz_name", make_full_tz_list()) def test_parse_tz_name_zzz(self, full_tz_name): =20=20=20=20 self.expected =3D datetime(2013, 1, 1, tzinfo=3Dtz.gettz(full_tz_na= me)) > assert ( self.parser.parse("2013-01-01 {}".format(full_tz_name), "YYYY-M= M-DD ZZZ") =3D=3D self.expected ) tests/test_parser.py:347:=20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _= _ _=20 arrow/parser.py:244: in parse self._parse_token(token, value, parts) arrow/parser.py:397: in _parse_token parts["tzinfo"] =3D TzinfoParser.parse(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _= _ _=20 cls =3D , tzinfo_string =3D 'America/Nuu= k' @classmethod def parse(cls, tzinfo_string): =20=20=20=20 tzinfo =3D None =20=20=20=20 if tzinfo_string =3D=3D "local": tzinfo =3D tz.tzlocal() =20=20=20=20 elif tzinfo_string in ["utc", "UTC", "Z"]: tzinfo =3D tz.tzutc() =20=20=20=20 else: =20=20=20=20 iso_match =3D cls._TZINFO_RE.match(tzinfo_string) =20=20=20=20 if iso_match: sign, hours, minutes =3D iso_match.groups() if minutes is None: minutes =3D 0 seconds =3D int(hours) * 3600 + int(minutes) * 60 =20=20=20=20 if sign =3D=3D "-": seconds *=3D -1 =20=20=20=20 tzinfo =3D tz.tzoffset(None, seconds) =20=20=20=20 else: tzinfo =3D tz.gettz(tzinfo_string) =20=20=20=20 if tzinfo is None: > raise ParserError( 'Could not parse timezone expression "{}"'.format(tzinfo_st= ring) ) E arrow.parser.ParserError: Could not parse timezone expression "= America/Nuuk" arrow/parser.py:592: ParserError =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYBvs/w8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j9DWAD/U7TarcPcL/JlSOTbnWwDRYBoGQqZ8qFdyBgY 4ORAbAoA/0L45UDKv/emTRsAWchw2DcgMGjdQ+HPZJqCpmDNW59o =bRKE -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Jun 14 19:35:38 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Guillaume Le Vaillant Subject: bug#46294: closed (Re: bug#46294: python-arrow timezone test failure) Message-ID: References: <87o8h06lts.fsf@yamatai> X-Gnu-PR-Message: they-closed 46294 X-Gnu-PR-Package: guix Reply-To: 46294@debbugs.gnu.org Date: Mon, 08 Feb 2021 08:04:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1612771442-3941-1" This is a multi-part message in MIME format... ------------=_1612771442-3941-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #46294: python-arrow timezone test failure which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 46294@debbugs.gnu.org. --=20 46294: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46294 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1612771442-3941-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 46294-done) by debbugs.gnu.org; 8 Feb 2021 08:03:41 +0000 Received: from localhost ([127.0.0.1]:49754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l91WG-00010y-Rp for submit@debbugs.gnu.org; Mon, 08 Feb 2021 03:03:41 -0500 Received: from flashner.co.il ([178.62.234.194]:50446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l91WF-00010j-Be for 46294-done@debbugs.gnu.org; Mon, 08 Feb 2021 03:03:39 -0500 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 0963E402CE; Mon, 8 Feb 2021 08:03:32 +0000 (UTC) Date: Mon, 8 Feb 2021 10:02:49 +0200 From: Efraim Flashner To: Guillaume Le Vaillant Subject: Re: bug#46294: python-arrow timezone test failure Message-ID: References: <87o8h06lts.fsf@yamatai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uoTsbwOufsJlAnyr" Content-Disposition: inline In-Reply-To: <87o8h06lts.fsf@yamatai> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 46294-done Cc: 46294-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --uoTsbwOufsJlAnyr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 04, 2021 at 01:47:59PM +0100, Guillaume Le Vaillant wrote: > Hi, >=20 > The python-arrow package currently fails to build because the > "test_parse_tz_name_zzz" test is failing. > This is with Guix at eae865c134ebb8b7432572288e8721794d6a9b87. > I'm not very familiar with Python, so does someone know how to fix this? I tracked this down a bit, python-dateutil still has America/Nuuk as America/Godthab, so any test looking for America/Nuuk is going to fail. Unfortunately with the number of dependants there's not an easy way to fix it on master so I think we'll need to skip that test for now. I've gone ahead and skipped the broken test and added a message to re-enable it after an update to python-dateutil. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --uoTsbwOufsJlAnyr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmAg8CkACgkQQarn3Mo9 g1EqaA/9FxEbrzwGQbm9JG2QHSIuj2OpV1730ynBUDBXZ3pMwOCmVpgHdDzy9/mL /UymzXM9pycqe/x81AAbxMR3MNjl8zfTLD2NLYvcTjXZE4K4CF+bV9Vthm8njH0e cCj00P/frSaBMQ6rFK/NcYYrSpip7NdMJdXlQ5Ts7K0/P9p+wbuF7DHGY7c6Eoa+ m0SnUlfCEBDHLK++MleOFKi6LAmWeB89Om5DGWlSPLsSTQJXyZks3pZ3h/DWGlhk SOTlcWQLgDBVcFe6G3sp8aQwMaLTT7l27WK13VF1JjL2nT6hJhca29CH5m114hQv tDUkshdbXw3XR3Rn5slcWrhxpDHIGrcEYE/W/MGUwoBirER3r+Xt7pMiHuwsH6uq b0MQNTRQ99Ib5qloDy+pVkspZZhykz1hSevODEId69V34drZLVIQlrstCcn/Lykz uj6oDhlsxJOuUIHBgQiLQ+4NedMmmxUCLkyy1Ixya9G7Qf6vaOqLaw3pHrgqXNBM daeYBsmLMJreuUbwgqiR4IZ/Nrb2MRxszYSGngRQ+gx5aHcvH6+qsYrs9SveeujC 19q+u1ujHL+eXW6xGVEAgE5EdRPsPH3qq0zozMA8p744pJDcj1VMXjNGMzEJrIBd 6Ob7urFLf9PmG6/8zsIb6d5cgG0wfZrcglR8MsiwNzlPWRdP+mE= =7x1/ -----END PGP SIGNATURE----- --uoTsbwOufsJlAnyr-- ------------=_1612771442-3941-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Feb 2021 12:48:15 +0000 Received: from localhost ([127.0.0.1]:40171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7e3T-0004oC-23 for submit@debbugs.gnu.org; Thu, 04 Feb 2021 07:48:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:59366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7e3Q-0004o3-Im for submit@debbugs.gnu.org; Thu, 04 Feb 2021 07:48:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7e3Q-0000Xz-2G for bug-guix@gnu.org; Thu, 04 Feb 2021 07:48:12 -0500 Received: from mout02.posteo.de ([185.67.36.66]:36313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7e3K-0001Bq-O6 for bug-guix@gnu.org; Thu, 04 Feb 2021 07:48:11 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id DE729240100 for ; Thu, 4 Feb 2021 13:48:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1612442882; bh=dCzQ9rGOWAoEtqYX1VNfTkxAFJMbmjpv4iqe1Zi/4nY=; h=From:To:Subject:Date:From; b=niRJ2E0ofLym5iP9S3C0wAeNJR/9URYOvs7B3YoB4+YhDmtfLLpY/k8R2vy3wc2AA 8egB9HZkqtV8FwicQevR/rAXdR3UJ2/JyDZZ67NuuLAWijUkM/H6OTMBJRHYiTf2YF T00NGHM2KP4dlO/s70ncMzxt28XL3LZzeM5JnjJx4b2HV1EdimpbSxTBm+2N4AwefP 60Z5W7W7673mAiXjefpquriYSnP6B7KS5M/WJF0065EBgIHYmX2xTNuzhuEuDa4Fv4 8gyyAGoi8oL7sQ67Q0LE98uybVzF6/Ttfnra8kjk6UJh6q91XWd+mYR6WmvUBYbsgJ bK3GemDejx8qQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DWdcx68xTz9rxM for ; Thu, 4 Feb 2021 13:48:01 +0100 (CET) User-agent: mu4e 1.4.14; emacs 27.1 From: Guillaume Le Vaillant To: bug-guix@gnu.org Subject: python-arrow timezone test failure Date: Thu, 04 Feb 2021 13:47:59 +0100 Message-ID: <87o8h06lts.fsf@yamatai> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, The python-arrow package currently fails to build because the "test_parse_tz_name_zzz" test is failing. This is with Guix at eae865c134ebb8b7432572288e8721794d6a9b87. I'm not very familiar with Python, so does someone know how to fix this? Here's the relevant part of the build log: =2D-8<---------------cut here---------------start------------->8--- _________ TestDateTimeParserParse.test_parse_tz_name_zzz[America/Nuuk] ____= _____ self =3D full_tz_name =3D 'America/Nuuk' @pytest.mark.parametrize("full_tz_name", make_full_tz_list()) def test_parse_tz_name_zzz(self, full_tz_name): =20=20=20=20 self.expected =3D datetime(2013, 1, 1, tzinfo=3Dtz.gettz(full_tz_na= me)) > assert ( self.parser.parse("2013-01-01 {}".format(full_tz_name), "YYYY-M= M-DD ZZZ") =3D=3D self.expected ) tests/test_parser.py:347:=20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _= _ _=20 arrow/parser.py:244: in parse self._parse_token(token, value, parts) arrow/parser.py:397: in _parse_token parts["tzinfo"] =3D TzinfoParser.parse(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _= _ _=20 cls =3D , tzinfo_string =3D 'America/Nuu= k' @classmethod def parse(cls, tzinfo_string): =20=20=20=20 tzinfo =3D None =20=20=20=20 if tzinfo_string =3D=3D "local": tzinfo =3D tz.tzlocal() =20=20=20=20 elif tzinfo_string in ["utc", "UTC", "Z"]: tzinfo =3D tz.tzutc() =20=20=20=20 else: =20=20=20=20 iso_match =3D cls._TZINFO_RE.match(tzinfo_string) =20=20=20=20 if iso_match: sign, hours, minutes =3D iso_match.groups() if minutes is None: minutes =3D 0 seconds =3D int(hours) * 3600 + int(minutes) * 60 =20=20=20=20 if sign =3D=3D "-": seconds *=3D -1 =20=20=20=20 tzinfo =3D tz.tzoffset(None, seconds) =20=20=20=20 else: tzinfo =3D tz.gettz(tzinfo_string) =20=20=20=20 if tzinfo is None: > raise ParserError( 'Could not parse timezone expression "{}"'.format(tzinfo_st= ring) ) E arrow.parser.ParserError: Could not parse timezone expression "= America/Nuuk" arrow/parser.py:592: ParserError =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYBvs/w8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j9DWAD/U7TarcPcL/JlSOTbnWwDRYBoGQqZ8qFdyBgY 4ORAbAoA/0L45UDKv/emTRsAWchw2DcgMGjdQ+HPZJqCpmDNW59o =bRKE -----END PGP SIGNATURE----- --=-=-=-- ------------=_1612771442-3941-1--