summaryrefslogtreecommitdiff
path: root/tests/test_config/test_predicates.py
diff options
context:
space:
mode:
authorSergey Maranchuk <slav0nic@python.su>2020-04-17 22:12:06 +0300
committerSergey Maranchuk <slav0nic@python.su>2020-04-17 22:12:06 +0300
commit6668e43d2d67db4574e08a9d54bd80eb105c1b28 (patch)
tree10eda61b15ae53815af24af956267e2f632a46f7 /tests/test_config/test_predicates.py
parent48cf45b0a1ac04e701101fa18778164825edd429 (diff)
downloadpyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.tar.gz
pyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.tar.bz2
pyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.zip
inheriting from `object` not necessary in py3
Diffstat (limited to 'tests/test_config/test_predicates.py')
-rw-r--r--tests/test_config/test_predicates.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_config/test_predicates.py b/tests/test_config/test_predicates.py
index f8abbbce4..d1562947e 100644
--- a/tests/test_config/test_predicates.py
+++ b/tests/test_config/test_predicates.py
@@ -200,7 +200,7 @@ class TestPredicateList(unittest.TestCase):
def test_different_custom_predicates_with_same_hash(self):
from pyramid.config.predicates import predvalseq
- class PredicateWithHash(object):
+ class PredicateWithHash:
def __hash__(self):
return 1
@@ -443,7 +443,7 @@ class Test_sort_accept_offers(unittest.TestCase):
)
-class DummyCustomPredicate(object):
+class DummyCustomPredicate:
def __init__(self):
self.__text__ = 'custom predicate'
@@ -458,7 +458,7 @@ class DummyCustomPredicate(object):
pass # pragma: no cover
-class Dummy(object):
+class Dummy:
def __init__(self, **kw):
self.__dict__.update(**kw)
@@ -475,7 +475,7 @@ class DummyRequest:
self.cookies = {}
-class DummyConfigurator(object):
+class DummyConfigurator:
package = 'dummy package'
registry = 'dummy registry'