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_config/test_predicates.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_config/test_predicates.py') 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' -- cgit v1.2.3