Commit 84283432 authored by Markus Lehtonen's avatar Markus Lehtonen Committed by Guido Günther

gbp.git: fix doctest with recent python-dateutil.

Traceback format has changed in recent python-dateutil.
Signed-off-by: 's avatarMarkus Lehtonen <markus.lehtonen@linux.intel.com>
parent 1e31e675
......@@ -38,10 +38,10 @@ def rfc822_date_to_git(rfc822_date, fuzzy=False):
'1206000777 -0700'
>>> rfc822_date_to_git('Sat, 5 Apr 2008 17:01:32 +0200')
'1207407692 +0200'
>>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100')
>>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100') # doctest: +ELLIPSIS
Traceback (most recent call last):
...
ValueError: Unknown string format
ValueError:...
>>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100', fuzzy=True)
'888479400 +0100'
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment