Malformed TZ strings raise ValueError naming the string.
(tzstr)
| 2235 | |
| 2236 | @pytest.mark.parametrize("tzstr", INVALID_TZSTRS) |
| 2237 | def test_invalid_tzstr(tzstr): |
| 2238 | """Malformed TZ strings raise ValueError naming the string.""" |
| 2239 | import re |
| 2240 | |
| 2241 | with pytest.raises(ValueError, match=re.escape(tzstr)): |
| 2242 | zone_from_tzstr(tzstr) |
| 2243 | |
| 2244 | |
| 2245 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected