Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertion when checking MINYEAR #166

Open
a-detiste opened this issue Mar 8, 2025 · 0 comments
Open

assertion when checking MINYEAR #166

a-detiste opened this issue Mar 8, 2025 · 0 comments

Comments

@a-detiste
Copy link

Hi,

I add to use to use this patch to build new version for Debian

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098593

test_parse_auto_generated_invalid_formats (tests.tests.InvalidTimestampTestCase.test_parse_auto_generated_invalid_formats) ... python3.13: isocalendar.c:128: days_before_year: Assertion `year >= 1' failed.
Aborted

--- a/module.c
+++ b/module.c
@@ -209,7 +209,7 @@
     /* Year */
     PARSE_INTEGER(year, 4, "year")
 
-#if !PY_VERSION_AT_LEAST_36
+#if 1
     /* Python 3.6+ does this validation as part of datetime's C API
      * constructor. See
      * https://github.com/python/cpython/commit/b67f0967386a9c9041166d2bbe0a421bd81e10bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant