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

Function test_parser_private_warns

tests/test_internals.py:50–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48# Test that private interfaces in _parser are deprecated properly
49@pytest.mark.skipif(IS_PY32, reason='pytest.warns not supported on Python 3.2')
50def test_parser_private_warns():
51 from dateutil.parser import _timelex, _tzparser
52 from dateutil.parser import _parsetz
53
54 with pytest.warns(DeprecationWarning):
55 _tzparser()
56
57 with pytest.warns(DeprecationWarning):
58 _timelex('2014-03-03')
59
60 with pytest.warns(DeprecationWarning):
61 _parsetz('+05:00')
62
63
64@pytest.mark.skipif(IS_PY32, reason='pytest.warns not supported on Python 3.2')

Callers

nothing calls this directly

Calls 3

_tzparserClass · 0.90
_timelexClass · 0.90
_parsetzFunction · 0.90

Tested by

no test coverage detected