diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-08-13 09:27:13 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-08-20 09:20:56 -0400 |
commit | d9c54cd83e8c676e34497fa135786a626d5d1fc7 (patch) | |
tree | 9f0b4defe1bbc50d96cfedabf5d2b591de8eac53 /ipapython/test | |
parent | 8780751330871033b13fc8fbb7eb0588baf4417d (diff) | |
download | freeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.tar.gz freeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.tar.xz freeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.zip |
Clean up additional issues discovered with pylint and pychecker
Diffstat (limited to 'ipapython/test')
-rw-r--r-- | ipapython/test/test_ipautil.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipapython/test/test_ipautil.py b/ipapython/test/test_ipautil.py index 7df8e99a9..98e8846c3 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) |