From bb6d56a3d6247e9b3d43c1e3a9e7edaaebb93672 Mon Sep 17 00:00:00 2001 From: Viacheslav Leskiv Date: Mon, 30 Dec 2024 17:31:25 +0200 Subject: [PATCH 1/2] fix malaysia 2025 --- calendra/asia/malaysia.py | 6 ++++++ calendra/tests/test_asia.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 31ecb289..f982de90 100644 --- a/calendra/tests/test_asia.py +++ b/calendra/tests/test_asia.py @@ -545,8 +545,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] From 173f8da2cf0573f5872b6e7092e48f9e01eb3a96 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 30 Dec 2024 11:10:25 -0500 Subject: [PATCH 2/2] Add news fragment. --- newsfragments/35.feature.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 newsfragments/35.feature.rst 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.