Index: tests/test_render_script.py |
=================================================================== |
--- a/tests/test_render_script.py |
+++ b/tests/test_render_script.py |
@@ -65,8 +65,8 @@ |
@pytest.fixture |
def webserver_port(tmpdir, request): |
"""Serve fragments via HTTP on a random port (return the port number).""" |
- Handler = SimpleHTTPServer.SimpleHTTPRequestHandler |
- httpd = SocketServer.TCPServer(("", 0), Handler) |
+ handler = SimpleHTTPServer.SimpleHTTPRequestHandler |
+ httpd = SocketServer.TCPServer(('', 0), handler) |
port = httpd.socket.getsockname()[1] |
# Create some files to serve. |
webroot = tmpdir.join('webroot') |