diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-07 12:14:25 (GMT) |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-07 12:14:25 (GMT) |
| commit | 1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07 (patch) | |
| tree | 42dc10540da9b1aff1d4e6cef51e4c11ce4f5b47 /Lib/test/test_calendar.py | |
| parent | 2a4ab816332a67150fcc8ece255fb1ee8e66af83 (diff) | |
| download | cpython-1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07.zip cpython-1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07.tar.gz cpython-1f3b4e12e8ba9cd896625ba02ea1ab6849ca3a07.tar.bz2 | |
Fix some py3k warnings in the standard library.
Diffstat (limited to 'Lib/test/test_calendar.py')
| -rw-r--r-- | Lib/test/test_calendar.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py index 39d4fe8..fad517c 100644 --- a/Lib/test/test_calendar.py +++ b/Lib/test/test_calendar.py @@ -212,11 +212,9 @@ class CalendarTestCase(unittest.TestCase): self.assertEqual(calendar.isleap(2003), 0) def test_setfirstweekday(self): - # Silence a py3k warning claiming to affect Lib/calendar.py - with test_support.check_warnings(): - self.assertRaises(ValueError, calendar.setfirstweekday, 'flabber') - self.assertRaises(ValueError, calendar.setfirstweekday, -1) - self.assertRaises(ValueError, calendar.setfirstweekday, 200) + self.assertRaises(ValueError, calendar.setfirstweekday, 'flabber') + self.assertRaises(ValueError, calendar.setfirstweekday, -1) + self.assertRaises(ValueError, calendar.setfirstweekday, 200) orig = calendar.firstweekday() calendar.setfirstweekday(calendar.SUNDAY) self.assertEqual(calendar.firstweekday(), calendar.SUNDAY) |
