diff --git a/tests/test_websocket.py b/tests/test_websocket.py index 20dacc59..851143c8 100644 --- a/tests/test_websocket.py +++ b/tests/test_websocket.py @@ -198,7 +198,7 @@ def test_root_path(self, *, daphne_path): """ Tests root_path handling. """ - headers = [("Daphne-Root-Path", parse.quote(daphne_path.encode("ascii")))] + headers = [("Daphne-Root-Path", parse.quote(daphne_path))] with DaphneTestingInstance() as test_app: test_app.add_send_messages([{"type": "websocket.accept"}]) self.websocket_handshake(