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

Function worker

tests/test_tzfile.py:2797–2806  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

2795 n_iterations = 200
2796
2797 def worker(key):
2798 try:
2799 for i in range(n_iterations):
2800 zone = tz.gettz(key)
2801 if zone != expected[key]:
2802 raise AssertionError(
2803 "%s: %r != %r" % (key, zone, expected[key])
2804 )
2805 except Exception as e: # pragma: nocover
2806 errors.append(e)
2807
2808 def clearer():
2809 try:

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
gettzMethod · 0.45

Tested by

no test coverage detected