summaryrefslogtreecommitdiff
path: root/webtest/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'webtest/http.py')
-rw-r--r--webtest/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/http.py b/webtest/http.py
index efe4ace..3d18ed2 100644
--- a/webtest/http.py
+++ b/webtest/http.py
@@ -55,7 +55,7 @@ class StopableWSGIServer(TcpWSGIServer):
super().__init__(self.wrapper, *args, **kwargs)
self.runner = None
self.test_app = application
- self.application_url = 'http://%s:%s/' % (self.adj.host, self.adj.port)
+ self.application_url = f'http://{self.adj.host}:{self.adj.port}/'
def wrapper(self, environ, start_response):
"""Wrap the wsgi application to override some path: