summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgcode@loowis.durge.org <gcode@loowis.durge.org@67cdc799-7952-0410-af00-57a81ceafa0f>2013-03-18 01:21:31 +0000
committergcode@loowis.durge.org <gcode@loowis.durge.org@67cdc799-7952-0410-af00-57a81ceafa0f>2013-03-18 01:21:31 +0000
commit86719c332bb5619caf355ce6c41565d68548ea24 (patch)
tree636c5d2b751b9b759d38e273caab772dbaee69e3
parentb94987712fb161c78c75b8a7e1afcd44e10f61b0 (diff)
downloadpyfilesystem-86719c332bb5619caf355ce6c41565d68548ea24.tar.gz
r844 modified test_archivefs.py to not run the TestReadArchiveFS tests if libarchve isn't available. This commit "completes" that change by adding the same test-skipping to TestWriteArchiveFS too.
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@850 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r--fs/tests/test_archivefs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/tests/test_archivefs.py b/fs/tests/test_archivefs.py
index 30019b6..5cbf8b7 100644
--- a/fs/tests/test_archivefs.py
+++ b/fs/tests/test_archivefs.py
@@ -97,6 +97,8 @@ class TestReadArchiveFS(unittest.TestCase):
class TestWriteArchiveFS(unittest.TestCase):
+ __test__ = libarchive_available
+
def setUp(self):
self.temp_filename = "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(6))+".zip"
self.temp_filename = os.path.join(tempfile.gettempdir(), self.temp_filename)
@@ -143,6 +145,8 @@ class TestWriteArchiveFS(unittest.TestCase):
#~ class TestAppendArchiveFS(TestWriteArchiveFS):
+ #~ __test__ = libarchive_available
+
#~ def setUp(self):
#~ self.temp_filename = "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(6))+".zip"
#~ self.temp_filename = os.path.join(tempfile.gettempdir(), self.temp_filename)
@@ -170,6 +174,8 @@ class TestWriteArchiveFS(unittest.TestCase):
#~ class TestArchiveFSErrors(unittest.TestCase):
+ #~ __test__ = libarchive_available
+
#~ def setUp(self):
#~ self.workdir = tempfile.mkdtemp()