| 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') |
| 50 | def 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') |