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

Method testMicrosecondPrecisionErrorReturns

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

Source from the content-addressed store, hash-verified

603 assert dt2.microsecond == 10000
604
605 def testMicrosecondPrecisionErrorReturns(self):
606 # One more precision issue, discovered by Eric Brown. This should
607 # be the last one, as we're no longer using floating points.
608 for ms in [100001, 100000, 99999, 99998,
609 10001, 10000, 9999, 9998,
610 1001, 1000, 999, 998,
611 101, 100, 99, 98]:
612 dt = datetime(2008, 2, 27, 21, 26, 1, ms)
613 assert parse(dt.isoformat()) == dt
614
615 def testCustomParserInfo(self):
616 # Custom parser info wasn't working, as Michael Elsdörfer discovered.

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected