summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_context_processors.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/auth_tests/test_context_processors.py
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'tests/auth_tests/test_context_processors.py')
-rw-r--r--tests/auth_tests/test_context_processors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auth_tests/test_context_processors.py b/tests/auth_tests/test_context_processors.py
index 3857917860..d66b28cb9c 100644
--- a/tests/auth_tests/test_context_processors.py
+++ b/tests/auth_tests/test_context_processors.py
@@ -8,7 +8,7 @@ from django.test import SimpleTestCase, TestCase, override_settings
from .settings import AUTH_MIDDLEWARE, AUTH_TEMPLATES
-class MockUser(object):
+class MockUser:
def has_module_perms(self, perm):
if perm == 'mockapp':
return True
@@ -24,7 +24,7 @@ class PermWrapperTests(SimpleTestCase):
"""
Test some details of the PermWrapper implementation.
"""
- class EQLimiterObject(object):
+ class EQLimiterObject:
"""
This object makes sure __eq__ will not be called endlessly.
"""