aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-26 17:04:38 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-27 09:48:06 +0200
commitbdcc883a5a088a8ede3f01d83cf565713a8ad5f7 (patch)
treef39efd19c00f2f8ed3c3182b98fda7f41c74132e
parent3dc9ee1b1bea5b39b2997b214c99f5cc9b827ab7 (diff)
PySide6: Fix the test HTTP server
Change the test data to be a bytearray, fixing: File "sources/pyside6/tests/util/httpd.py", line 47, in do_GET self.wfile.write(TestHandler.DATA) File "/usr/lib/python3.8/socketserver.py", line 799, in write self._sock.sendall(b) TypeError: a bytes-like object is required, not 'str' Pick-to: 6.0 Change-Id: I5a0b5d0f76c4245fc7209d17a6c7f1e664cbc04f Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/pyside6/tests/util/httpd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/util/httpd.py b/sources/pyside6/tests/util/httpd.py
index 82bec337d..2cbaa130e 100644
--- a/sources/pyside6/tests/util/httpd.py
+++ b/sources/pyside6/tests/util/httpd.py
@@ -39,7 +39,7 @@ sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__f
class TestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
- DATA = "PySide Server"
+ DATA = b"PySide Server"
allow_reuse_address = True
def do_GET(self):