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

Function test_no_tz_data

tests/test_tzfile.py:582–586  ·  view source on GitHub ↗

Test what happens when no TZ data is available.

()

Source from the content-addressed store, hash-verified

580
581@set_tzpath((), block_tzdata=True)
582def test_no_tz_data():
583 """Test what happens when no TZ data is available."""
584 tz.gettz.cache_clear()
585 NYC = tz.gettz("America/New_York")
586 assert NYC is None
587
588
589def test_tzpath_setting(tmp_path):

Callers

nothing calls this directly

Calls 2

cache_clearMethod · 0.80
gettzMethod · 0.45

Tested by

no test coverage detected