Skip to content

Commit 2f1f63a

Browse files
authored
Update Lib/test/test_calendar.py
1 parent 0bce258 commit 2f1f63a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_calendar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ def test_formatmonth_with_invalid_month(self):
465465
calendar.TextCalendar().formatmonth(2017, -1)
466466

467467
def test_illegal_month_error_bases(self):
468-
self.assertIsSubclass(calendar.IllegalMonthError, ValueError)
469-
self.assertIsSubclass(calendar.IllegalMonthError, IndexError)
468+
self.assertTrue(issubclass(calendar.IllegalMonthError, ValueError))
469+
self.assertTrue(issubclass(calendar.IllegalMonthError, IndexError))
470470

471471
def test_formatmonthname_with_year(self):
472472
self.assertEqual(

0 commit comments

Comments
 (0)