GNU bug report logs - #74302
[PATCH] gnu: python-crontab: Fix failing tests

Previous Next

Package: guix-patches;

Reported by: TakeV <takev <at> disroot.org>

Date: Sun, 10 Nov 2024 20:57:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74302 in the body.
You can then email your comments to 74302 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#74302; Package guix-patches. (Sun, 10 Nov 2024 20:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to TakeV <takev <at> disroot.org>:
New bug report received and forwarded. Copy sent to lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org. (Sun, 10 Nov 2024 20:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: TakeV <takev <at> disroot.org>
To: guix-patches <at> gnu.org
Cc: TakeV <takev <at> disroot.org>
Subject: [PATCH] gnu: python-crontab: Fix failing tests
Date: Sun, 10 Nov 2024 15:54:43 -0500
* gnu/packages/python-xyz.scm (python-crontab) [arguments]: Turn off frequency
at month check

Change-Id: Ia6a8f703119dc61ddc6b359fca161dfb5a21319d
---

Apparently this check fails on leap years.

 gnu/packages/python-xyz.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5083473c08..2d84bfa57e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29547,6 +29547,9 @@ (define-public python-crontab
                              "tests/test_frequency.py")
                 (("test_07_non_posix_shell")
                  "__off_test_07_non_posix_shell")
+                ;; Fails on leap years
+                (("test_19_frequency_at_month")
+                 "__off_test_19_frequency_at_month")
                 ;; AssertionError: 48 != 24
                 (("test_20_frequency_at_year")
                  "__off_test_20_frequency_at_year")))))))

base-commit: ee3219996b688d2c3336a7ea1e262308cf2d00b7
prerequisite-patch-id: 8e79e3033f6e8ae459eab31d7cf5149a8eb01e9c
prerequisite-patch-id: 2442dd8fbe7af78372dbf03871fb6c5506eb75fe
-- 
2.46.0





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 14 Nov 2024 14:44:02 GMT) Full text and rfc822 format available.

Notification sent to TakeV <takev <at> disroot.org>:
bug acknowledged by developer. (Thu, 14 Nov 2024 14:44:02 GMT) Full text and rfc822 format available.

Message #10 received at 74302-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: TakeV <takev <at> disroot.org>
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>,
 Munyoki Kilyungi <me <at> bonfacemunyoki.com>, Lars-Dominik Braun <lars <at> 6xq.net>,
 jgart <jgart <at> dismail.de>, Marius Bakke <marius <at> gnu.org>,
 Tanguy Le Carrour <tanguy <at> bioneland.org>, 74302-done <at> debbugs.gnu.org
Subject: Re: [bug#74302] [PATCH] gnu: python-crontab: Fix failing tests
Date: Thu, 14 Nov 2024 15:43:04 +0100
TakeV <takev <at> disroot.org> skribis:

> * gnu/packages/python-xyz.scm (python-crontab) [arguments]: Turn off frequency
> at month check
>
> Change-Id: Ia6a8f703119dc61ddc6b359fca161dfb5a21319d

Applied, thanks!

> +                ;; Fails on leap years
> +                (("test_19_frequency_at_month")
> +                 "__off_test_19_frequency_at_month")

An interesting time trap…

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 13 Dec 2024 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 249 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.