コード例 #1
0
 def test_windows(self):
     """
     L{_getInstallFunction} chooses the select reactor on Windows.
     """
     install = _getInstallFunction(windows)
     self.assertEqual(
         install.__module__, 'twisted.internet.selectreactor')
コード例 #2
0
 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.assertIsPoll(install)
コード例 #3
0
 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.assertIsPoll(install)
コード例 #4
0
 def test_osx(self):
     """
     L{_getInstallFunction} chooses the select reactor on OS X.
     """
     install = _getInstallFunction(osx)
     self.assertEqual(
         install.__module__, 'twisted.internet.selectreactor')
コード例 #5
0
 def test_linux(self):
     """
     L{_getInstallFunction} chooses the poll reactor on Linux.
     """
     install = _getInstallFunction(linux)
     self.assertEquals(
         install.__module__, 'twisted.internet.pollreactor')
コード例 #6
0
 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.assertIsPoll(install)
     else:
         self.assertEqual(install.__module__,
                          'twisted.internet.epollreactor')
コード例 #7
0
 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.assertIsPoll(install)
     else:
         self.assertEqual(
             install.__module__, 'twisted.internet.epollreactor')
コード例 #8
0
 def test_linux(self):
     """
     L{_getInstallFunction} chooses the epoll reactor on Linux, or poll if
     epoll is unavailable.
     """
     install = _getInstallFunction(linux)
     try:
         from twisted.internet import epollreactor
     except ImportError:
         self.assertIsPoll(install)
     else:
         self.assertEqual(install.__module__, "twisted.internet.epollreactor")
コード例 #9
0
ファイル: test_default.py プロジェクト: 309972460/software
 def test_linux(self):
     """
     L{_getInstallFunction} chooses the epoll reactor on Linux, or poll if
     epoll is unavailable.
     """
     install = _getInstallFunction(linux)
     try:
         from twisted.internet import epollreactor
     except ImportError:
         self.assertIsPoll(install)
     else:
         self.assertEqual(
             install.__module__, 'twisted.internet.epollreactor')
コード例 #10
0
ファイル: test_default.py プロジェクト: debedb/kupuestra2
 def test_linux(self):
     """
     L{_getInstallFunction} chooses the poll reactor on Linux.
     """
     install = _getInstallFunction(linux)
     self.assertEqual(install.__module__, 'twisted.internet.pollreactor')