summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_functional.py
diff options
context:
space:
mode:
authorSimon Charette <charettes@users.noreply.github.com>2017-01-19 02:39:46 -0500
committerClaude Paroz <claude@2xlibre.net>2017-01-19 08:39:46 +0100
commitcecc079168e8669138728d31611ff3a1e7eb3a9f (patch)
tree2415083d44f84c6f206930fc689a8c0e50a98caa /tests/utils_tests/test_functional.py
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'tests/utils_tests/test_functional.py')
-rw-r--r--tests/utils_tests/test_functional.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/utils_tests/test_functional.py b/tests/utils_tests/test_functional.py
index f53e212f93..befbcf931c 100644
--- a/tests/utils_tests/test_functional.py
+++ b/tests/utils_tests/test_functional.py
@@ -11,7 +11,7 @@ class FunctionalTestCase(unittest.TestCase):
def test_lazy_base_class(self):
"""lazy also finds base class methods in the proxy object"""
- class Base(object):
+ class Base:
def base_method(self):
pass
@@ -23,7 +23,7 @@ class FunctionalTestCase(unittest.TestCase):
def test_lazy_base_class_override(self):
"""lazy finds the correct (overridden) method implementation"""
- class Base(object):
+ class Base:
def method(self):
return 'Base'
@@ -36,7 +36,7 @@ class FunctionalTestCase(unittest.TestCase):
def test_lazy_object_to_string(self):
- class Klazz(object):
+ class Klazz:
def __str__(self):
return "Î am ā Ǩlâzz."
@@ -51,7 +51,7 @@ class FunctionalTestCase(unittest.TestCase):
"""
cached_property caches its value and that it behaves like a property
"""
- class A(object):
+ class A:
@cached_property
def value(self):