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

Function test_parser_private_warns

tests/test_internals.py:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43###
44# Test that private interfaces in _parser are deprecated properly
45def test_parser_private_warns():
46 from dateutil.parser import _timelex, _tzparser
47 from dateutil.parser import _parsetz
48
49 with pytest.warns(DeprecationWarning):
50 _tzparser()
51
52 with pytest.warns(DeprecationWarning):
53 _timelex('2014-03-03')
54
55 with pytest.warns(DeprecationWarning):
56 _parsetz('+05:00')
57
58
59def test_parser_parser_private_not_warns():

Callers

nothing calls this directly

Calls 3

_tzparserClass · 0.90
_timelexClass · 0.90
_parsetzFunction · 0.90

Tested by

no test coverage detected