Here are the examples of the python api twisted.internet.inotify.INotifyError taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
View Complete Implementation : test_inotify.py
Copyright MIT License
Author : wistbean
Copyright MIT License
Author : wistbean
def test_initializationErrors(self):
"""
L{inotify.INotify} emits a C{RuntimeError} when initialized
in an environment that doesn't support inotify as we expect it.
We just try to raise an exception for every possible case in
the for loop in L{inotify.INotify._inotify__init__}.
"""
clast FakeINotify:
def init(self):
raise inotify.INotifyError()
self.patch(inotify.INotify, '_inotify', FakeINotify())
self.astertRaises(inotify.INotifyError, inotify.INotify)