Skip ZStandard tests if the module is not installed

This commit is contained in:
Sybren A. Stüvel 2021-10-05 18:34:44 +02:00
parent 8a06bf5903
commit c61d5ee7ab

View File

@ -332,6 +332,14 @@ class LoadGZipCompressedTest(AbstractBlendFileTest):
class LoadZStdCompressedTest(AbstractBlendFileTest):
def setUp(self):
super().setUp()
try:
import zstandard
except ImportError:
self.skipTest("zstandard module not installed")
def test_loading(self):
zstd_bfile_path = self.blendfiles / "basic_file_compressed_zstd.blend"
self.bf = blendfile.BlendFile(zstd_bfile_path)