diff options
author | Friedemann Kleint <[email protected]> | 2021-04-26 17:04:38 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2021-04-27 09:48:06 +0200 |
commit | bdcc883a5a088a8ede3f01d83cf565713a8ad5f7 (patch) | |
tree | f39efd19c00f2f8ed3c3182b98fda7f41c74132e /sources/pyside6/tests | |
parent | 3dc9ee1b1bea5b39b2997b214c99f5cc9b827ab7 (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 <[email protected]>
Diffstat (limited to 'sources/pyside6/tests')
-rw-r--r-- | sources/pyside6/tests/util/httpd.py | 2 |
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): |