We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141fe1a commit 2074025Copy full SHA for 2074025
tests/test_compression.py
@@ -3,6 +3,7 @@
3
from uuid import uuid4
4
5
from pycpio import PyCPIO
6
+from pycpio.errors import UnavailableCompression
7
from zenlib.logging import loggify
8
9
@@ -71,7 +72,10 @@ def test_write_zstd_compress(self):
71
72
self.make_test_files(100)
73
self.cpio.append_recursive(self.workdir.name)
74
out_file = NamedTemporaryFile()
- self.cpio.write_cpio_file(out_file.file.name, compression="zstd")
75
+ try:
76
+ self.cpio.write_cpio_file(out_file.file.name, compression="zstd")
77
+ except UnavailableCompression as e:
78
+ self.skipTest(f"Zstandard compression is not available in this environment: {e}")
79
out_file.file.flush()
80
81
0 commit comments