Also catch INotifyError when testing tree watcher

This commit is contained in:
ZyX 2014-09-14 18:07:28 +04:00
parent b596643a34
commit 92b75aa951
1 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,8 @@ class TestFilesystemWatchers(TestCase):
raise SkipTest('No tree watcher available')
except UvNotFound:
raise SkipTest('Pyuv is not available')
except INotifyError:
raise SkipTest('INotify is not available')
self.assertTrue(tw(inotify_dir))
self.assertFalse(tw(inotify_dir))
changed = partial(self.do_test_for_change, tw, inotify_dir)