From 0171974ddb252db70fa0b1fb3f9eb769930360e2 Mon Sep 17 00:00:00 2001 From: Aart Goossens Date: Wed, 25 Jan 2017 14:44:51 +0100 Subject: [PATCH] CHANGE - Removes Liberation Day NL after 2000 (#38) --- holidays.py | 2 -- tests.py | 6 ------ 2 files changed, 8 deletions(-) diff --git a/holidays.py b/holidays.py index 9b4394d3f1..dd4dc8ec1e 100644 --- a/holidays.py +++ b/holidays.py @@ -2012,8 +2012,6 @@ def _populate(self, year): # Liberation day if year >= 1947 and year <= 2000: self[date(year, 5, 5)] = "Bevrijdingsdag" - elif year >= 2000 and year % 5 == 0: - self[date(year, 5, 5)] = "Bevrijdingsdag" # Kingsday if year >= 2014: diff --git a/tests.py b/tests.py index f624bd8a70..dd741621fc 100644 --- a/tests.py +++ b/tests.py @@ -813,12 +813,6 @@ def test_liberation_day(self): self.holidays = holidays.NL(years=1900) self.assertFalse(date(1900, 5, 5) in self.holidays) - self.holidays = holidays.NL(years=2010) - self.assertTrue(date(2020, 5, 5) in self.holidays) - - self.holidays = holidays.NL(years=2010) - self.assertFalse(date(2011, 5, 5) in self.holidays) - def test_ascension_day(self): self.holidays = holidays.NL(years=2017) self.assertTrue(date(2017, 5, 25) in self.holidays)