MCPcopy Index your code
hub / github.com/bugy/script-server / test_init_when_linux

Method test_init_when_linux

src/tests/web/server_test.py:34–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32
33class ServerTest(TestCase):
34 def test_init_when_linux(self):
35 test_utils.set_linux()
36
37 try:
38 self.start_server(12345, '127.0.0.1')
39
40 if self.requires_explicit_ioloop_factory:
41 self.fail('Server should NOT be startable on current environment')
42 else:
43 self.check_server_running()
44
45 except NotImplementedError as e:
46 if self.requires_explicit_ioloop_factory and is_unsupported_ioloop_exception(e):
47 return
48
49 raise
50
51 @patch('utils.env_utils.sys.version_info', (3, 8, 0))
52 def test_init_when_windows_and_python_3_8(self):

Callers

nothing calls this directly

Calls 3

start_serverMethod · 0.95
check_server_runningMethod · 0.95

Tested by

no test coverage detected