From c61d5ee7ab00689aa207ee7cc3c941cf14fd7783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 5 Oct 2021 18:34:44 +0200 Subject: [PATCH] Skip ZStandard tests if the module is not installed --- tests/test_blendfile_loading.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_blendfile_loading.py b/tests/test_blendfile_loading.py index 00c1b96..5e8e909 100644 --- a/tests/test_blendfile_loading.py +++ b/tests/test_blendfile_loading.py @@ -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)