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

Function test_gettz_cache_clear

tests/test_tz.py:1188–1194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1186
1187@pytest.mark.gettz
1188def test_gettz_cache_clear():
1189 NYC1 = tz.gettz('America/New_York')
1190 tz.gettz.cache_clear()
1191
1192 NYC2 = tz.gettz('America/New_York')
1193
1194 assert NYC1 is not NYC2
1195
1196@pytest.mark.gettz
1197def test_gettz_set_cache_size():

Callers

nothing calls this directly

Calls 2

cache_clearMethod · 0.80
gettzMethod · 0.45

Tested by

no test coverage detected