Skip to content

Commit 999b814

Browse files
committed
skip libarchive test if not available (and we don't use it anyway=
1 parent eae6850 commit 999b814

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/tests/test_archivefs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
from six import PY3, b
2525

26+
27+
@unittest.skipIf(not libarchive_available, "libarchive fs not available")
2628
class TestReadArchiveFS(unittest.TestCase):
2729

2830
__test__ = libarchive_available
@@ -95,6 +97,7 @@ def check_listing(path, expected):
9597
check_listing('foo/bar', ['baz.txt'])
9698

9799

100+
@unittest.skipIf(not libarchive_available, "libarchive fs not available")
98101
class TestWriteArchiveFS(unittest.TestCase):
99102

100103
__test__ = libarchive_available

0 commit comments

Comments
 (0)