chiark / gitweb /
rfc822_date_to_git: Fix docstring for new dateutil.parser.parse
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Oct 2018 13:32:32 +0000 (14:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Oct 2018 14:17:27 +0000 (15:17 +0100)
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 <ijackson@chiark.greenend.org.uk>
gbp/git/__init__.py

index b3bc59976c5fcd049100c3cfa1302fce2db1eafb..4bb858898d809a01c5da5dae779bf4d2646f442b 100644 (file)
@@ -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'
     """