summaryrefslogtreecommitdiff
path: root/tests/test_router.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-04-23 17:59:37 -0500
committerGitHub <noreply@github.com>2020-04-23 17:59:37 -0500
commit4f5708909879cfb399e6d586df68acadc9990ed8 (patch)
tree50cc251eb0588bc6d6eb8e1940581022920a7d9c /tests/test_router.py
parent48cf45b0a1ac04e701101fa18778164825edd429 (diff)
parent6a249329b2e4528bd64b46b9a62c53505dec67a9 (diff)
downloadpyramid-4f5708909879cfb399e6d586df68acadc9990ed8.tar.gz
pyramid-4f5708909879cfb399e6d586df68acadc9990ed8.tar.bz2
pyramid-4f5708909879cfb399e6d586df68acadc9990ed8.zip
Merge pull request #3571 from slav0nic/py3features
py3 features
Diffstat (limited to 'tests/test_router.py')
-rw-r--r--tests/test_router.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_router.py b/tests/test_router.py
index 6fa9f9a5b..63d9b4238 100644
--- a/tests/test_router.py
+++ b/tests/test_router.py
@@ -153,7 +153,7 @@ class TestRouter(unittest.TestCase):
def test_request_factory(self):
from pyramid.interfaces import IRequestFactory
- class DummyRequestFactory(object):
+ class DummyRequestFactory:
pass
self.registry.registerUtility(DummyRequestFactory, IRequestFactory)
@@ -378,7 +378,7 @@ class TestRouter(unittest.TestCase):
context = DummyContext()
self._registerTraverserFactory(context)
- class Extensions(object):
+ class Extensions:
def __init__(self):
self.methods = {}
self.descriptors = {}
@@ -1642,7 +1642,7 @@ class TestRouter(unittest.TestCase):
self.assertEqual(result[1], None)
-class DummyPredicate(object):
+class DummyPredicate:
def __call__(self, info, request):
return True
@@ -1685,7 +1685,7 @@ class DummyStartResponse:
@implementer(IResponse)
-class DummyResponse(object):
+class DummyResponse:
headerlist = ()
app_iter = ()
environ = None