浏览代码

tests: Fix test run with OpenSSL disabled

rdb 2 月之前
父节点
当前提交
b7fb4af197
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/express/test_zip.py

+ 2 - 0
tests/express/test_zip.py

@@ -3,6 +3,7 @@ from direct.stdpy.file import StreamIOWrapper
 import zipfile
 import zipfile
 from io import BytesIO
 from io import BytesIO
 import os
 import os
+import pytest
 
 
 
 
 EMPTY_ZIP = b'PK\x05\x06' + b'\x00' * 18
 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"
         assert zf.read("test3.txt") == b"contents of third file"
 
 
 
 
[email protected](not hasattr(ZipArchive, 'add_jar_signature'), reason='OpenSSL support disabled')
 def test_zip_jar_signature():
 def test_zip_jar_signature():
     cur_dir = Filename.from_os_specific(os.path.dirname(__file__))
     cur_dir = Filename.from_os_specific(os.path.dirname(__file__))