summaryrefslogtreecommitdiff
path: root/tests/test_config/test_adapters.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-10-31 01:36:26 -0500
committerMichael Merickel <michael@merickel.org>2018-11-12 21:39:23 -0600
commit6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf (patch)
tree5d115273784eb021e5550539e39f552672921329 /tests/test_config/test_adapters.py
parent7429fcb5a96aa10bbe86da08bd0b30c9292efdde (diff)
downloadpyramid-6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf.tar.gz
pyramid-6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf.tar.bz2
pyramid-6b0e4625da2c53a1e3fdb4857fc7c6ba6ce562cf.zip
initial work to remove py2 from the codebase
Diffstat (limited to 'tests/test_config/test_adapters.py')
-rw-r--r--tests/test_config/test_adapters.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_config/test_adapters.py b/tests/test_config/test_adapters.py
index d871e8825..60a4f3090 100644
--- a/tests/test_config/test_adapters.py
+++ b/tests/test_config/test_adapters.py
@@ -1,6 +1,5 @@
import unittest
-from pyramid.compat import PY2
from . import IDummy
@@ -270,10 +269,7 @@ class AdaptersConfiguratorMixinTests(unittest.TestCase):
from pyramid.interfaces import IResponse
config = self._makeOne(autocommit=True)
- if PY2:
- str_name = '__builtin__.str'
- else:
- str_name = 'builtins.str'
+ str_name = 'builtins.str'
config.add_response_adapter('pyramid.response.Response', str_name)
result = config.registry.queryAdapter('foo', IResponse)
self.assertTrue(result.body, b'foo')