Skip to content

Commit

Permalink
Merge pull request #35 from ArcLightSlavik/malaysia-2025-fix
Browse files Browse the repository at this point in the history
fix malaysia 2025
  • Loading branch information
jaraco authored Dec 30, 2024
2 parents 2d0a6b3 + 173f8da commit daaf5db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions calendra/asia/malaysia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions calendra/tests/test_asia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions newsfragments/35.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated Malaysia calendar through 2027.

0 comments on commit daaf5db

Please sign in to comment.