mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #19590: Use specific asserts in email tests.
This commit is contained in:
parent
9c10d6b800
commit
328cf3cbdf
4 changed files with 92 additions and 107 deletions
|
@ -54,12 +54,12 @@ class LocaltimeTests(unittest.TestCase):
|
|||
def test_localtime_is_tz_aware_daylight_true(self):
|
||||
test.support.patch(self, time, 'daylight', True)
|
||||
t = utils.localtime()
|
||||
self.assertIsNot(t.tzinfo, None)
|
||||
self.assertIsNotNone(t.tzinfo)
|
||||
|
||||
def test_localtime_is_tz_aware_daylight_false(self):
|
||||
test.support.patch(self, time, 'daylight', False)
|
||||
t = utils.localtime()
|
||||
self.assertIsNot(t.tzinfo, None)
|
||||
self.assertIsNotNone(t.tzinfo)
|
||||
|
||||
def test_localtime_daylight_true_dst_false(self):
|
||||
test.support.patch(self, time, 'daylight', True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue