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

Method setUp

Lib/test/test_zoneinfo/test_zoneinfo_property.py:138–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 module = py_zoneinfo
137
138 def setUp(self):
139 with contextlib.ExitStack() as stack:
140 stack.enter_context(test_support.set_zoneinfo_module(self.module))
141 self.addCleanup(stack.pop_all().close)
142
143 super().setUp()
144
145 @hypothesis.given(key=valid_keys())
146 @add_key_examples

Callers

nothing calls this directly

Calls 4

superClass · 0.85
enter_contextMethod · 0.80
addCleanupMethod · 0.80
pop_allMethod · 0.45

Tested by

no test coverage detected