summaryrefslogtreecommitdiff
path: root/tests/apps
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/apps
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
downloaddjango-cecc079168e8669138728d31611ff3a1e7eb3a9f.tar.gz
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'tests/apps')
-rw-r--r--tests/apps/apps.py2
-rw-r--r--tests/apps/tests.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/apps/apps.py b/tests/apps/apps.py
index 1096c1e4b8..d322b28f2b 100644
--- a/tests/apps/apps.py
+++ b/tests/apps/apps.py
@@ -16,7 +16,7 @@ class BadConfig(AppConfig):
"""This class doesn't supply the mandatory 'name' attribute."""
-class NotAConfig(object):
+class NotAConfig:
name = 'apps'
diff --git a/tests/apps/tests.py b/tests/apps/tests.py
index 9576420b54..e270662436 100644
--- a/tests/apps/tests.py
+++ b/tests/apps/tests.py
@@ -296,7 +296,7 @@ class AppsTests(SimpleTestCase):
self.assertListEqual(model_classes, [LazyA, LazyB, LazyB, LazyC, LazyA])
-class Stub(object):
+class Stub:
def __init__(self, **kwargs):
self.__dict__.update(kwargs)