aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/git
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2018-09-14 14:00:36 +0300
committerGuido Günther <agx@sigxcpu.org>2018-09-17 11:23:59 +0200
commit84283432c6beb342887616e6005ba70fc4246ceb (patch)
tree38cb64496290f04221cfa739d4ae360233b0a724 /gbp/git
parent1e31e675e2ef2d022cd6bd65ba52a90dc5009aea (diff)
gbp.git: fix doctest with recent python-dateutil.
Traceback format has changed in recent python-dateutil. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/git')
-rw-r--r--gbp/git/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/git/__init__.py b/gbp/git/__init__.py
index b3bc5997..2022870f 100644
--- a/gbp/git/__init__.py
+++ b/gbp/git/__init__.py
@@ -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'
"""