diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-12-13 10:12:30 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-12-17 16:37:15 +0100 |
| commit | 45548b18a9e73012521a7b16a234e9689da0d9ab (patch) | |
| tree | 8f20adad674393e8564e4682bb5d0cc5dd444b26 /sources/pyside6/tests/util/httpd.py | |
| parent | dc41b6a9fb736bb0b6e86470c3d3d016fa88711a (diff) | |
Fix some flake8 errors in tests/examples
As unearthed by the whitespace change.
Pick-to: 6.8
Change-Id: I58c1a38c3c4a9c91719131d7950950ddf475872b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/util/httpd.py')
| -rw-r--r-- | sources/pyside6/tests/util/httpd.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/pyside6/tests/util/httpd.py b/sources/pyside6/tests/util/httpd.py index 925bd1125..4545ef20d 100644 --- a/sources/pyside6/tests/util/httpd.py +++ b/sources/pyside6/tests/util/httpd.py @@ -46,7 +46,7 @@ class TestSecureHandler(BaseHTTPServer.BaseHTTPRequestHandler): try: handler = self.marshall_handler() handler.do_request(self) - except: + except: # noqa: E722 self.send_response(401) self.send_header("WWW-Authenticate", "Basic realm='Secure Area'") self.send_header("Content-type", "text/plain") @@ -97,12 +97,12 @@ class CompatTCPServer(SocketServer.TCPServer): if self.isPy25: try: request, client_address = self.get_request() - except socket.error: + except socket.error: # noqa: F821 return if self.verify_request(request, client_address): try: self.process_request(request, client_address) - except: + except: # noqa: E722 self.handle_error(request, client_address) self.close_request(request) @@ -138,7 +138,7 @@ class TestServer(threading.Thread): try: self.httpd = CompatTCPServer(('', self._port), handle) break - except: + except: # noqa: E722 self._port = self._port + random.randint(1, 100) def port(self): |
