From: Ian Jackson Date: Sun, 14 Oct 2018 13:32:32 +0000 (+0100) Subject: rfc822_date_to_git: Fix docstring for new dateutil.parser.parse X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=646c33a7c86e5d2a5532a9b67396a80a963b029c;p=git-buildpackage.git rfc822_date_to_git: Fix docstring for new dateutil.parser.parse dateutil.parser.parse now, on failure, throws ValueError containing a tuple - now it has the troublesome string too. This causes the tests to fail in Debian sid. Signed-off-by: Ian Jackson --- diff --git a/gbp/git/__init__.py b/gbp/git/__init__.py index b3bc599..4bb8588 100644 --- a/gbp/git/__init__.py +++ b/gbp/git/__init__.py @@ -41,7 +41,7 @@ def rfc822_date_to_git(rfc822_date, fuzzy=False): >>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100') Traceback (most recent call last): ... - ValueError: Unknown string format + ValueError: ('Unknown string format:', 'So, 26 Feb 1998 8:50:00 +0100') >>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100', fuzzy=True) '888479400 +0100' """