MCPcopy Index your code
hub / github.com/python/cpython / _callSetUp

Method _callSetUp

Lib/unittest/async_case.py:93–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 return result
92
93 def _callSetUp(self):
94 # Force loop to be initialized and set as the current loop
95 # so that setUp functions can use get_event_loop() and get the
96 # correct loop instance.
97 self._asyncioRunner.get_loop()
98 self._asyncioTestContext.run(self.setUp)
99 self._callAsync(self.asyncSetUp)
100
101 def _callTestMethod(self, method):
102 result = self._callMaybeAsync(method)

Callers

nothing calls this directly

Calls 3

_callAsyncMethod · 0.95
get_loopMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected