summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_lazyobject.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_lazyobject.py
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'tests/utils_tests/test_lazyobject.py')
-rw-r--r--tests/utils_tests/test_lazyobject.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/utils_tests/test_lazyobject.py b/tests/utils_tests/test_lazyobject.py
index 513123ea00..11bf163747 100644
--- a/tests/utils_tests/test_lazyobject.py
+++ b/tests/utils_tests/test_lazyobject.py
@@ -9,7 +9,7 @@ from django.utils.functional import LazyObject, SimpleLazyObject, empty
from .models import Category, CategoryInfo
-class Foo(object):
+class Foo:
"""
A simple class with just one attribute.
"""
@@ -167,7 +167,7 @@ class LazyObjectTestCase(TestCase):
# Tests whether an object's custom `__iter__` method is being
# used when iterating over it.
- class IterObject(object):
+ class IterObject:
def __init__(self, values):
self.values = values
@@ -356,7 +356,7 @@ class SimpleLazyObjectTestCase(LazyObjectTestCase):
self.assertEqual(len(lazy_set), 4)
-class BaseBaz(object):
+class BaseBaz:
"""
A base class with a funky __reduce__ method, meant to simulate the
__reduce__ method of Model, which sets self._django_version.