summaryrefslogtreecommitdiff
path: root/tests/test_integration.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-11-14 19:13:07 -0600
committerMichael Merickel <michael@merickel.org>2018-11-14 19:13:19 -0600
commit0b570220d9f442700eb97c5a5c4eca6ab03a1ee4 (patch)
tree12f55f71443e90657dc13701e4b74b7a2b48e37b /tests/test_integration.py
parent8c0cbe3be52a56ba9dc8ab6ced028dab9b48b333 (diff)
downloadpyramid-0b570220d9f442700eb97c5a5c4eca6ab03a1ee4.tar.gz
pyramid-0b570220d9f442700eb97c5a5c4eca6ab03a1ee4.tar.bz2
pyramid-0b570220d9f442700eb97c5a5c4eca6ab03a1ee4.zip
remove urllib.parse shims
Diffstat (limited to 'tests/test_integration.py')
-rw-r--r--tests/test_integration.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_integration.py b/tests/test_integration.py
index d57a7cf6e..0652d8ee8 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -4,6 +4,7 @@ import gc
import locale
import os
import unittest
+from urllib.parse import quote
from webtest import TestApp
from zope.interface import Interface
@@ -11,7 +12,7 @@ from pyramid.wsgi import wsgiapp
from pyramid.view import view_config
from pyramid.static import static_view
from pyramid.testing import skip_on
-from pyramid.compat import text_, url_quote
+from pyramid.compat import text_
from .pkgs.exceptionviewapp.models import AnException, NotAnException
@@ -108,7 +109,7 @@ class StaticAppBase(IntegrationBase):
os.makedirs(pathdir)
with open(path, 'wb') as fp:
fp.write(body)
- url = url_quote('/static/héhé/index.html')
+ url = quote('/static/héhé/index.html')
res = self.testapp.get(url, status=200)
self.assertEqual(res.body, body)
finally:
@@ -123,7 +124,7 @@ class StaticAppBase(IntegrationBase):
with open(path, 'wb') as fp:
fp.write(body)
try:
- url = url_quote('/static/héhé.html')
+ url = quote('/static/héhé.html')
res = self.testapp.get(url, status=200)
self.assertEqual(res.body, body)
finally: