Skip ZStandard tests if the module is not installed
This commit is contained in:
parent
8a06bf5903
commit
c61d5ee7ab
@ -332,6 +332,14 @@ class LoadGZipCompressedTest(AbstractBlendFileTest):
|
|||||||
|
|
||||||
|
|
||||||
class LoadZStdCompressedTest(AbstractBlendFileTest):
|
class LoadZStdCompressedTest(AbstractBlendFileTest):
|
||||||
|
def setUp(self):
|
||||||
|
super().setUp()
|
||||||
|
|
||||||
|
try:
|
||||||
|
import zstandard
|
||||||
|
except ImportError:
|
||||||
|
self.skipTest("zstandard module not installed")
|
||||||
|
|
||||||
def test_loading(self):
|
def test_loading(self):
|
||||||
zstd_bfile_path = self.blendfiles / "basic_file_compressed_zstd.blend"
|
zstd_bfile_path = self.blendfiles / "basic_file_compressed_zstd.blend"
|
||||||
self.bf = blendfile.BlendFile(zstd_bfile_path)
|
self.bf = blendfile.BlendFile(zstd_bfile_path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user