diff options
author | Christian Heimes <cheimes@redhat.com> | 2018-09-26 11:59:50 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2018-09-27 11:49:04 +0200 |
commit | b431e9b684df11c811892bd9d2a5711355f0076e (patch) | |
tree | 77a831532933ea9c289529e1974300c7be276a18 /ipatests/test_ipapython/test_ipautil.py | |
parent | 4a58adf79e8b6b1dfbd534f16bcec368a189131e (diff) | |
download | freeipa-b431e9b684df11c811892bd9d2a5711355f0076e.tar.gz freeipa-b431e9b684df11c811892bd9d2a5711355f0076e.tar.xz freeipa-b431e9b684df11c811892bd9d2a5711355f0076e.zip |
Py3: Remove subclassing from object
Python 2 had old style and new style classes. Python 3 has only new
style classes. There is no point to subclass from object any more.
See: https://pagure.io/freeipa/issue/7715
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Diffstat (limited to 'ipatests/test_ipapython/test_ipautil.py')
-rw-r--r-- | ipatests/test_ipapython/test_ipautil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_ipapython/test_ipautil.py b/ipatests/test_ipapython/test_ipautil.py index a9c00d70a..232587d0b 100644 --- a/ipatests/test_ipapython/test_ipautil.py +++ b/ipatests/test_ipapython/test_ipautil.py @@ -84,7 +84,7 @@ def test_ip_address(addr, words, prefixlen): assert ip.prefixlen == prefixlen -class TestCIDict(object): +class TestCIDict: def setup(self): self.cidict = ipautil.CIDict() self.cidict["Key1"] = "val1" @@ -333,7 +333,7 @@ class TestCIDict(object): assert list(dct.values()) == [None] * 3 -class TestTimeParser(object): +class TestTimeParser: def test_simple(self): timestr = "20070803" |