MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_pickle_timezone

Function test_pickle_timezone

tests/datetime/test_behavior.py:169–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168
169def test_pickle_timezone():
170 dt1 = pendulum.timezone("Europe/Amsterdam")
171 s = pickle.dumps(dt1)
172 dt2 = pickle.loads(s)
173
174 assert isinstance(dt2, Timezone)
175
176 dt1 = pendulum.timezone("UTC")
177 s = pickle.dumps(dt1)
178 dt2 = pickle.loads(s)
179
180 assert isinstance(dt2, Timezone)

Callers

nothing calls this directly

Calls 1

timezoneMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…