Skip to content

Commit

Permalink
Fix doctest under python3.7: timedelta repr got smarter
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jul 23, 2018
1 parent 7a85a93 commit 2215d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nti/externalization/datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def duration_from_string(value):
Produce a :class:`datetime.timedelta` from a ISO8601 format duration
string.
>>> ITimeDelta('P112D')
datetime.timedelta(112)
>>> ITimeDelta('P0D')
datetime.timedelta(0)
"""
return isodate.parse_duration(value)

0 comments on commit 2215d1b

Please sign in to comment.