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

Method setUp

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

Source from the content-addressed store, hash-verified

1664 module = py_zoneinfo
1665
1666 def setUp(self):
1667 self.klass.clear_cache()
1668
1669 with contextlib.ExitStack() as stack:
1670 stack.enter_context(test_support.set_zoneinfo_module(self.module))
1671 self.addCleanup(stack.pop_all().close)
1672
1673 super().setUp()
1674
1675 @property
1676 def zoneinfo_data(self):

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected