MCPcopy Create free account
hub / github.com/dateutil/dateutil / setUp

Method setUp

tests/_common.py:116–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 tz_source = "tzpath"
115
116 def setUp(self):
117 super().setUp()
118 if self.tz_source is None:
119 return
120
121 reason = tz_source_skip_reason(self.tz_source)
122 if reason is not None:
123 self.skipTest(reason)
124
125 context = tz_source_context(self.tz_source)
126 context.__enter__()
127 self.addCleanup(context.__exit__, None, None, None)
128
129
130class PicklableMixin:

Callers

nothing calls this directly

Calls 3

tz_source_skip_reasonFunction · 0.85
tz_source_contextFunction · 0.85
__enter__Method · 0.45

Tested by

no test coverage detected