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

4.x branch: Fix for issue 518 (to_ical() with RRULE BYDAY values>=10) #524

Merged
merged 1 commit into from
Sep 6, 2023
Merged

4.x branch: Fix for issue 518 (to_ical() with RRULE BYDAY values>=10) #524

merged 1 commit into from
Sep 6, 2023

Conversation

semiprime
Copy link
Contributor

Issue 518 fix for the 4.x branch (already fixed in master branch). Issue: #518

The fix itself is the same as in the master branch. The test code has been adapted because the corresponding test code in 4.x uses the unittest module, rather than pytest as in the master branch.

All tests pass (run with setup.py test). Without the fix, the new tests give 3 failures.

Justification for inclusion in 4.x branch: It's a crashing bug. The fix is low risk (never say zero risk!).

…_ical()): updated WEEKDAY_RULE regex to accept 2 digits. Added tests for to_ical() covering various BYDAY values.
@semiprime
Copy link
Contributor Author

Looking at the test logs, failures seem to be py35, py36, pypy3 because the version of Python wasn't available. Other tests were canceled.

FWIW, I initially tested with Python 3.9.16 (x64) (pytest & unittest versions) . After the automatic test failures, I tested on Python 2.7.18 (x86) and Python 3.5.3 (Arm64) (both unittest only). All these tests passed.

@niccokunzmann
Copy link
Member

Hm. The old Python version numbers have changed.

Would you be willing to adjust them in the file?
Here are the ones: https://github.com/raw/actions/python-versions/main/versions-manifest.json
3.6.15
3.5.9
3.4.10

This way, the tests suit can run. Otherwise, all following changes might fail, too.

Thanks so much for backporting!

@niccokunzmann niccokunzmann mentioned this pull request Aug 30, 2023
8 tasks
@niccokunzmann
Copy link
Member

#529 includes this commit to merge it with CI.

@niccokunzmann niccokunzmann merged commit 53e301e into collective:4.x Sep 6, 2023
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

Successfully merging this pull request may close these issues.

2 participants