From b7fb4af197609c21eafa50b35eea3ad8ea0c2410 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 15 Oct 2025 11:58:55 +0200 Subject: [PATCH] tests: Fix test run with OpenSSL disabled --- tests/express/test_zip.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/express/test_zip.py b/tests/express/test_zip.py index ee433845d4..88985db933 100644 --- a/tests/express/test_zip.py +++ b/tests/express/test_zip.py @@ -3,6 +3,7 @@ from direct.stdpy.file import StreamIOWrapper import zipfile from io import BytesIO import os +import pytest EMPTY_ZIP = b'PK\x05\x06' + b'\x00' * 18 @@ -184,6 +185,7 @@ def test_zip_repack(tmp_path): assert zf.read("test3.txt") == b"contents of third file" +@pytest.mark.skipif(not hasattr(ZipArchive, 'add_jar_signature'), reason='OpenSSL support disabled') def test_zip_jar_signature(): cur_dir = Filename.from_os_specific(os.path.dirname(__file__))