From 908951014714709f33d6d507b884b6c948d3336e Mon Sep 17 00:00:00 2001 From: Panos Date: Sat, 11 Oct 2025 16:18:39 +0100 Subject: [PATCH] Updated CI compression test --- ci/integration_tests/test_channel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/integration_tests/test_channel.py b/ci/integration_tests/test_channel.py index f1b77f90..efb582aa 100644 --- a/ci/integration_tests/test_channel.py +++ b/ci/integration_tests/test_channel.py @@ -8,7 +8,7 @@ from ssh2.session import Session from ssh2.channel import Channel from ssh2.exceptions import SocketSendError -from ssh2.session import LIBSSH2_METHOD_COMP_CS, LIBSSH2_FLAG_COMPRESS +from ssh2.session import LIBSSH2_METHOD_COMP_CS, LIBSSH2_METHOD_COMP_SC, LIBSSH2_FLAG_COMPRESS from .base_test import SSH2TestCase @@ -206,6 +206,8 @@ def test_execute_with_session_compression(self): session.flag(LIBSSH2_FLAG_COMPRESS) algs = session.supported_algs(LIBSSH2_METHOD_COMP_CS) self.assertTrue('zlib' in algs) + algs = session.supported_algs(LIBSSH2_METHOD_COMP_SC) + self.assertTrue('zlib' in algs) session.handshake(sock) session.userauth_publickey_fromfile( self.user, self.user_key)