From 646c33a7c86e5d2a5532a9b67396a80a963b029c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 14 Oct 2018 14:32:32 +0100 Subject: [PATCH] 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 --- gbp/git/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' """ -- 2.30.2