summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBert JW Regeer <xistence@0x58.com>2022-02-05 20:01:24 -0700
committerGitHub <noreply@github.com>2022-02-05 20:01:24 -0700
commit2efb1345e6a4a2d6beab374c98f9337f26f2fc3a (patch)
treee85dd64335c958d5fa7200ecfc375d29c624f8de /tests
parent0b24ac16cc04746b25cf460f1497c157f6d3d6f4 (diff)
parentb492e302a5dfe471acb065a79f5b4ec7651f34d3 (diff)
downloadpyramid-2efb1345e6a4a2d6beab374c98f9337f26f2fc3a.tar.gz
pyramid-2efb1345e6a4a2d6beab374c98f9337f26f2fc3a.tar.bz2
pyramid-2efb1345e6a4a2d6beab374c98f9337f26f2fc3a.zip
Merge pull request #3689 from ergo/master
Add support for Python 3.10
Diffstat (limited to 'tests')
-rw-r--r--tests/pkgs/restbugapp/views.py2
-rw-r--r--tests/test_config/test_views.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/pkgs/restbugapp/views.py b/tests/pkgs/restbugapp/views.py
index 6930d3668..d7e253ac2 100644
--- a/tests/pkgs/restbugapp/views.py
+++ b/tests/pkgs/restbugapp/views.py
@@ -8,7 +8,7 @@ class BaseRESTView:
class PetRESTView(BaseRESTView):
- """ REST Controller to control action of an avatar """
+ """REST Controller to control action of an avatar"""
def __init__(self, context, request):
super().__init__(context, request)
diff --git a/tests/test_config/test_views.py b/tests/test_config/test_views.py
index fcccbfba3..72f8f0145 100644
--- a/tests/test_config/test_views.py
+++ b/tests/test_config/test_views.py
@@ -248,7 +248,7 @@ class TestViewsConfigurationMixin(unittest.TestCase):
from pyramid.renderers import null_renderer
def view(request):
- """ ABC """
+ """ABC"""
return 'OK'
def view_wrapper(fn):
@@ -271,7 +271,7 @@ class TestViewsConfigurationMixin(unittest.TestCase):
from pyramid.renderers import null_renderer
def view(request):
- """ ABC """
+ """ABC"""
return 'OK'
def view_wrapper1(fn):
@@ -306,7 +306,7 @@ class TestViewsConfigurationMixin(unittest.TestCase):
response = Response('OK')
def view(request):
- """ ABC """
+ """ABC"""
return response
config = self._makeOne(autocommit=True)
@@ -3790,7 +3790,7 @@ class Test_preserve_view_attrs(unittest.TestCase):
def test_it_different(self):
class DummyView1:
- """ 1 """
+ """1"""
__name__ = '1'
__module__ = '1'
@@ -3808,7 +3808,7 @@ class Test_preserve_view_attrs(unittest.TestCase):
""" """
class DummyView2:
- """ 2 """
+ """2"""
__name__ = '2'
__module__ = '2'