skip all tests w/o inotify support

This commit is contained in:
meejah 2016-06-21 16:14:38 -06:00 committed by Brian Warner
parent 87acfe968e
commit 88cd4cb6c2

View File

@ -1461,4 +1461,7 @@ class RealTestAliceBob(MagicFolderAliceBobTestMixin, unittest.TestCase):
try:
magic_folder.get_inotify_module()
except NotImplementedError:
RealTest.skip = "Magic Folder support can only be tested for-real on an OS that supports inotify or equivalent."
msg = "Magic Folder support can only be tested for-real on an OS that " + \
"supports inotify or equivalent."
for klass in [RealTest, MockTest, MockTestAliceBob, RealTestAliceBob]:
klass.skip = msg