From 6668e43d2d67db4574e08a9d54bd80eb105c1b28 Mon Sep 17 00:00:00 2001 From: Sergey Maranchuk Date: Fri, 17 Apr 2020 22:12:06 +0300 Subject: inheriting from `object` not necessary in py3 --- tests/test_security.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_security.py') diff --git a/tests/test_security.py b/tests/test_security.py index db5861562..fdd5288d8 100644 --- a/tests/test_security.py +++ b/tests/test_security.py @@ -248,7 +248,7 @@ class TestViewExecutionPermitted(unittest.TestCase): from pyramid.interfaces import ISecuredView from pyramid.interfaces import IViewClassifier - class Checker(object): + class Checker: def __permitted__(self, context, request): self.context = context self.request = request @@ -277,7 +277,7 @@ class TestViewExecutionPermitted(unittest.TestCase): context = DummyContext() request = testing.DummyRequest({}) - class DummyView(object): + class DummyView: pass view = DummyView() -- cgit v1.2.3