[issue31635] test_strptime failure on OpenBSD

2018-09-18 Thread Paul Ganssle
Paul Ganssle added the comment: Bug reported to BSD here: https://marc.info/?l=openbsd-bugs=153728102618747=2 -- ___ Python tracker ___

[issue31635] test_strptime failure on OpenBSD

2018-09-18 Thread Paul Ganssle
Paul Ganssle added the comment: I do think this is an active bug in OpenBSD's ISO calculations, here: https://github.com/openbsd/src/blob/b66614995ab119f75167daaa7755b34001836821/lib/libc/time/wcsftime.c#L326 I re-created this algorithm in Python and at the beginning of the year it gives

[issue31635] test_strptime failure on OpenBSD

2018-09-17 Thread Paul Ganssle
Paul Ganssle added the comment: @Serhiy Looking more closely at #13414, I think there's a good chance that we've just discovered a different bug in OpenBSD's implementation of wcsftime (or strftime). Looks like OpenBSD 6.1 was released in 2017, which should have been years after the fix

[issue31635] test_strptime failure on OpenBSD

2018-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I used OpenBSD 6.1. I'll check on more modern versions when have chance. -- ___ Python tracker ___

[issue31635] test_strptime failure on OpenBSD

2018-09-16 Thread Paul Ganssle
Paul Ganssle added the comment: This appears to be a duplicate of issue #13414, which was resolved as fixed in BSD. @serhiy Are you using a very old version of BSD? -- ___ Python tracker

[issue31635] test_strptime failure on OpenBSD

2018-09-16 Thread Paul Ganssle
Paul Ganssle added the comment: I think this is the relevant test: https://github.com/python/cpython/blob/3.7/Lib/test/test_strptime.py#L536 The issue seems to be in `strftime` rather than in `strptime`. According to Serhiy's paste, it seems that `datetime.datetime.strftime("%G %V %w")` on

[issue31635] test_strptime failure on OpenBSD

2018-09-14 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31635] test_strptime failure on OpenBSD

2018-09-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31635] test_strptime failure on OpenBSD

2017-09-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +davin ___ Python tracker ___ ___

[issue31635] test_strptime failure on OpenBSD

2017-09-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : $ ./python -m test -vuall test_strptime ... == FAIL: test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTests) [Jan 1 on Sunday]