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

Function test_valid_dateutil_format

tests/test_tz.py:1710–1716  ·  view source on GitHub ↗
(tz_str, expected)

Source from the content-addressed store, hash-verified

1708 end=relativedelta(hours=+1, month=11, day=31, weekday=SU(-3)))),
1709])
1710def test_valid_dateutil_format(tz_str, expected):
1711 # This tests the dateutil-specific format that is used widely in the tests
1712 # and examples. It is unclear where this format originated from.
1713 with pytest.warns(tz.DeprecatedTzFormatWarning):
1714 tzi = tz.tzstr.instance(tz_str)
1715
1716 assert tzi == expected
1717
1718
1719@pytest.mark.tzstr

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.80

Tested by

no test coverage detected