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

Function block_tzdata

tests/conftest.py:41–46  ·  view source on GitHub ↗

Makes the tzdata package impossible to import.

()

Source from the content-addressed store, hash-verified

39
40@pytest.fixture
41def block_tzdata():
42 """Makes the tzdata package impossible to import."""
43 from dateutil import tz
44
45 with set_tzpath(tuple(tz.TZPATH), block_tzdata=True):
46 yield

Callers

nothing calls this directly

Calls 1

set_tzpathFunction · 0.85

Tested by

no test coverage detected