diff --git a/calendra/asia/malaysia.py b/calendra/asia/malaysia.py index 30b886c9..176495d4 100644 --- a/calendra/asia/malaysia.py +++ b/calendra/asia/malaysia.py @@ -52,6 +52,9 @@ class Malaysia(IslamicMixin, ChineseNewYearCalendar): 2022: date(2022, 10, 24), 2023: date(2023, 11, 13), # in lieu of 12th Nov 2024: date(2024, 10, 31), + 2025: date(2025, 10, 20), + 2026: date(2026, 11, 9), + 2027: date(2027, 10, 28), } # Ref: https://publicholidays.com.my/thaipusam/ @@ -71,6 +74,9 @@ class Malaysia(IslamicMixin, ChineseNewYearCalendar): 2022: date(2022, 1, 18), 2023: date(2023, 2, 4), 2024: date(2024, 1, 25), + 2025: date(2025, 2, 11), + 2026: date(2026, 2, 2), + 2027: date(2027, 1, 24), } chinese_new_year_label = "First Day of Lunar New Year" include_chinese_second_day = True diff --git a/calendra/tests/test_asia.py b/calendra/tests/test_asia.py index fa5d4afc..caef6453 100644 --- a/calendra/tests/test_asia.py +++ b/calendra/tests/test_asia.py @@ -573,8 +573,8 @@ def test_fix_deepavali_2018(self): self.assertEqual(holidays[deepavali], "Deepavali") def test_msia_thaipusam(self): - # we only have them for years 2010-2024 - self.assertEqual(set(self.cal.MSIA_THAIPUSAM), set(range(2010, 2025))) + # we only have them for years 2010-2027 + self.assertEqual(set(self.cal.MSIA_THAIPUSAM), set(range(2010, 2028))) def test_missing_deepavali(self): save_2020 = self.cal.MSIA_DEEPAVALI[2020] diff --git a/newsfragments/35.feature.rst b/newsfragments/35.feature.rst new file mode 100644 index 00000000..361fb686 --- /dev/null +++ b/newsfragments/35.feature.rst @@ -0,0 +1 @@ +Updated Malaysia calendar through 2027.