summaryrefslogtreecommitdiff
path: root/tests/test_url.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_url.py')
-rw-r--r--tests/test_url.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_url.py b/tests/test_url.py
index 94a0a61c9..648f48d53 100644
--- a/tests/test_url.py
+++ b/tests/test_url.py
@@ -3,7 +3,7 @@ import unittest
from pyramid import testing
-from pyramid.compat import text_, WIN
+from pyramid.util import WIN, text_
class TestURLMethodsMixin(unittest.TestCase):
@@ -25,6 +25,7 @@ class TestURLMethodsMixin(unittest.TestCase):
def __init__(self, environ):
self.environ = environ
+ self.scheme = environ.get('wsgi.url_scheme', 'http')
request = Request(environ)
request.registry = self.config.registry