| 63 | |
| 64 | @pytest.mark.skipif(IS_PY32, reason='pytest.warns not supported on Python 3.2') |
| 65 | def test_parser_parser_private_not_warns(): |
| 66 | from dateutil.parser._parser import _timelex, _tzparser |
| 67 | from dateutil.parser._parser import _parsetz |
| 68 | |
| 69 | with warnings.catch_warnings(): |
| 70 | warnings.simplefilter("error") |
| 71 | _tzparser() |
| 72 | |
| 73 | with warnings.catch_warnings(): |
| 74 | warnings.simplefilter("error") |
| 75 | _timelex('2014-03-03') |
| 76 | |
| 77 | with warnings.catch_warnings(): |
| 78 | warnings.simplefilter("error") |
| 79 | _parsetz('+05:00') |
| 80 | |
| 81 | |
| 82 | @pytest.mark.tzstr |