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

Method setUp

Lib/test/test_zoneinfo/test_zoneinfo.py:84–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 return True
83
84 def setUp(self):
85 with contextlib.ExitStack() as stack:
86 stack.enter_context(
87 self.tzpath_context(
88 self.tzpath,
89 block_tzdata=self.block_tzdata,
90 lock=TZPATH_TEST_LOCK,
91 )
92 )
93 self.addCleanup(stack.pop_all().close)
94
95 super().setUp()
96
97
98class DatetimeSubclassMixin:

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected