aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/util/httpd.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-29 11:18:49 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-29 15:56:58 +0200
commit6d2af409eedee377b3c2ba0cd8156b9409fabd9d (patch)
tree660f8fd87f77c1030cf97cc65345b9a941a321e4 /sources/pyside6/tests/util/httpd.py
parent88fff87519e741a3a999b8c1545834d116859faa (diff)
Tests: Fix some space-related flake8 warnings
Change-Id: I9b0ad08839bf1246620c557ec304dfa90882907b Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/tests/util/httpd.py')
-rw-r--r--sources/pyside6/tests/util/httpd.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/tests/util/httpd.py b/sources/pyside6/tests/util/httpd.py
index 2cbaa130e..dbd78aeb8 100644
--- a/sources/pyside6/tests/util/httpd.py
+++ b/sources/pyside6/tests/util/httpd.py
@@ -55,6 +55,7 @@ class TestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
self.send_header("Content-Length", str(len(TestHandler.DATA)))
self.end_headers()
+
class TestSecureHandler(BaseHTTPServer.BaseHTTPRequestHandler):
DATA = "PySide"
allow_reuse_address = True
@@ -78,6 +79,8 @@ class TestSecureHandler(BaseHTTPServer.BaseHTTPRequestHandler):
self.end_headers()
# Workaround for the missing shutdown method in python2.5
+
+
class CompatTCPServer(SocketServer.TCPServer):
def __init__(self, server_address, RequestHandlerClass):
SocketServer.TCPServer.__init__(self, server_address, RequestHandlerClass)
@@ -158,7 +161,7 @@ class TestServer(threading.Thread):
while True:
try:
- self.httpd = CompatTCPServer(('' , self._port), handle)
+ self.httpd = CompatTCPServer(('', self._port), handle)
break
except:
self._port = self._port + random.randint(1, 100)