Skip to content

Commit

Permalink
Fix maintainability warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Schrotti <[email protected]>
  • Loading branch information
Rosi2143 committed Feb 7, 2025
1 parent 7b9b2b4 commit bc39a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_holiday_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,10 +1269,10 @@ def test_get_closest_holiday_corner_cases(self):

us = US()
# check for date before start of calendar
self.assertEqual(us.get_closest_holiday("1777-01-01", in_future=False), None)
self.assertIsNone(us.get_closest_holiday("1777-01-01", in_future=False))

# check for date after end of calendar
self.assertEqual(us.get_closest_holiday("2100-12-31"), None)
self.assertIsNone(us.get_closest_holiday("2100-12-31"))

def test_get_closest_holiday_after_empty_year(self):
from holidays.countries.ukraine import UA
Expand Down

0 comments on commit bc39a89

Please sign in to comment.