Improve calendar constants deprecation coverage#153893
Conversation
… the proper warnings. * extended `test_deprecation_warning` to check `constants.February` as well
…nstants-deprecation-coverage
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
One of the Windows tests is failing which seems unrelated to the change, let's see if re-running the tests fixes it |
Thanks a lot for looking into it |
tomasr8
left a comment
There was a problem hiding this comment.
Thanks for the contribution @vjabuilds !
|
Thanks @vjabuilds for the PR, and @tomasr8 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-153919 is a backport of this pull request to the 3.15 branch. |
|
GH-153920 is a backport of this pull request to the 3.14 branch. |
|
GH-153921 is a backport of this pull request to the 3.13 branch. |
Test `calendar.February` deprecation (GH-153893) Calendar related tests now check if both deprecated constants surface the proper warnings. * extended `test_deprecation_warning` to check `constants.February` as well (cherry picked from commit 31c81e6) Co-authored-by: vjabuilds <77214151+vjabuilds@users.noreply.github.com> Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Test `calendar.February` deprecation (GH-153893) Calendar related tests now check if both deprecated constants surface the proper warnings. * extended `test_deprecation_warning` to check `constants.February` as well (cherry picked from commit 31c81e6) Co-authored-by: vjabuilds <77214151+vjabuilds@users.noreply.github.com> Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Test `calendar.February` deprecation (GH-153893) Calendar related tests now check if both deprecated constants surface the proper warnings. * extended `test_deprecation_warning` to check `constants.February` as well (cherry picked from commit 31c81e6) Co-authored-by: vjabuilds <77214151+vjabuilds@users.noreply.github.com> Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
The
calendar.Februaryandcalendar.Januaryconstants were both deprecated, whileLib/test/test_calendar.pyonly checked if aDeprecationWarningwas issued forcalendar.January.Extended the test to include
calendar.Februaryin the deprecation check as well.