From d9c54cd83e8c676e34497fa135786a626d5d1fc7 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 13 Aug 2009 09:27:13 -0400 Subject: Clean up additional issues discovered with pylint and pychecker --- ipapython/test/test_ipautil.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipapython/test') diff --git a/ipapython/test/test_ipautil.py b/ipapython/test/test_ipautil.py index 7df8e99a..98e8846c 100644 --- a/ipapython/test/test_ipautil.py +++ b/ipapython/test/test_ipautil.py @@ -275,7 +275,7 @@ class TestTimeParser(unittest.TestCase): time = ipautil.parse_generalized_time(timestr) self.assertEqual(0, time.tzinfo.houroffset) self.assertEqual(0, time.tzinfo.minoffset) - offset = time.tzinfo.utcoffset(None) + offset = time.tzinfo.utcoffset() self.assertEqual(0, offset.seconds) timestr = "20051213141205+0500" @@ -283,7 +283,7 @@ class TestTimeParser(unittest.TestCase): time = ipautil.parse_generalized_time(timestr) self.assertEqual(5, time.tzinfo.houroffset) self.assertEqual(0, time.tzinfo.minoffset) - offset = time.tzinfo.utcoffset(None) + offset = time.tzinfo.utcoffset() self.assertEqual(5 * 60 * 60, offset.seconds) timestr = "20051213141205-0500" @@ -293,7 +293,7 @@ class TestTimeParser(unittest.TestCase): self.assertEqual(0, time.tzinfo.minoffset) # NOTE - the offset is always positive - it's minutes # _east_ of UTC - offset = time.tzinfo.utcoffset(None) + offset = time.tzinfo.utcoffset() self.assertEqual((24 - 5) * 60 * 60, offset.seconds) timestr = "20051213141205-0930" @@ -301,7 +301,7 @@ class TestTimeParser(unittest.TestCase): time = ipautil.parse_generalized_time(timestr) self.assertEqual(-9, time.tzinfo.houroffset) self.assertEqual(-30, time.tzinfo.minoffset) - offset = time.tzinfo.utcoffset(None) + offset = time.tzinfo.utcoffset() self.assertEqual(((24 - 9) * 60 * 60) - (30 * 60), offset.seconds) -- cgit