Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dedent line in calendar test
  • Loading branch information
Agent-Hellboy committed Apr 26, 2023
commit ddcdc43c850ea54d023c01aefc1811c26ed072b8
6 changes: 3 additions & 3 deletions Lib/test/test_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,9 @@ def test_deprecation_warning(self):
# Access the deprecated attribute
calendar.January
# Check that a DeprecationWarning was issued
self.assertEqual(len(w), 1)
self.assertEqual(w[0].category, DeprecationWarning)
self.assertIn("The 'January' attribute is deprecated, use 'JANUARY' instead", str(w[0].message))
self.assertEqual(len(w), 1)
self.assertEqual(w[0].category, DeprecationWarning)
self.assertIn("The 'January' attribute is deprecated, use 'JANUARY' instead", str(w[0].message))

def test_isleap(self):
# Make sure that the return is right for a few years, and
Expand Down