Calendar related tests now check if both deprecated constants surface the proper warnings.
* extended `test_deprecation_warning` to check `constants.February` as well
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
"The 'January' attribute is deprecated, use 'JANUARY' instead"
):
calendar.January
+ with self.assertWarnsRegex(
+ DeprecationWarning,
+ "The 'February' attribute is deprecated, use 'FEBRUARY' instead"
+ ):
+ calendar.February
def test_isleap(self):
# Make sure that the return is right for a few years, and