Here are the examples of the python api twisted.internet.default._getInstallFunction taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4 Examples
3
View Complete Implementation : test_default.py
Copyright MIT License
Author : wistbean
Copyright MIT License
Author : wistbean
def test_unix(self):
"""
L{_getInstallFunction} chooses the poll reactor on arbitrary Unix
platforms, falling back to select(2) if it is unavailable.
"""
install = _getInstallFunction(unix)
self.astertIsPoll(install)
3
View Complete Implementation : test_default.py
Copyright MIT License
Author : wistbean
Copyright MIT License
Author : wistbean
def test_linux(self):
"""
L{_getInstallFunction} chooses the epoll reactor on Linux, or poll if
epoll is unavailable.
"""
install = _getInstallFunction(linux)
if requireModule('twisted.internet.epollreactor') is None:
self.astertIsPoll(install)
else:
self.astertEqual(
install.__module__, 'twisted.internet.epollreactor')
3
View Complete Implementation : test_default.py
Copyright MIT License
Author : wistbean
Copyright MIT License
Author : wistbean
def test_osx(self):
"""
L{_getInstallFunction} chooses the select reactor on macOS.
"""
install = _getInstallFunction(osx)
self.astertEqual(
install.__module__, 'twisted.internet.selectreactor')
3
View Complete Implementation : test_default.py
Copyright MIT License
Author : wistbean
Copyright MIT License
Author : wistbean
def test_windows(self):
"""
L{_getInstallFunction} chooses the select reactor on Windows.
"""
install = _getInstallFunction(windows)
self.astertEqual(
install.__module__, 'twisted.internet.selectreactor')