Test what happens when no TZ data is available.
()
| 580 | |
| 581 | @set_tzpath((), block_tzdata=True) |
| 582 | def 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 | |
| 589 | def test_tzpath_setting(tmp_path): |
nothing calls this directly
no test coverage detected