MCPcopy
hub / github.com/tornadoweb/tornado / get_async_test_timeout

Function get_async_test_timeout

tornado/testing.py:71–84  ·  view source on GitHub ↗

Get the global timeout setting for async tests. Returns a float, the timeout in seconds. .. versionadded:: 3.1

()

Source from the content-addressed store, hash-verified

69
70
71def get_async_test_timeout() -> float:
72 """Get the global timeout setting for async tests.
73
74 Returns a float, the timeout in seconds.
75
76 .. versionadded:: 3.1
77 """
78 env = os.environ.get("ASYNC_TEST_TIMEOUT")
79 if env is not None:
80 try:
81 return float(env)
82 except ValueError:
83 pass
84 return 5
85
86
87class AsyncTestCase(unittest.TestCase):

Callers 4

waitMethod · 0.85
fetchMethod · 0.85
tearDownMethod · 0.85
gen_testFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected