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

Method test_idx_check

tests/test_parser.py:705–710  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

703 datetime(2015, 5, 15))
704
705 def test_idx_check(self):
706 dtstr = '2017-07-17 06:15:'
707 # Pre-PR, the trailing colon will cause an IndexError at 824-825
708 # when checking `i < len_l` and then accessing `l[i+1]`
709 res = parse(dtstr, fuzzy=True)
710 assert res == datetime(2017, 7, 17, 6, 15)
711
712 def test_hmBY(self):
713 # See GH#483

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected