From 40d4a4b13d4ca959879d1798f24d510fd7abf4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Thu, 26 Mar 2015 22:07:19 +0100 Subject: Fix typo in FuzzyDateTime (Closes #189). Thanks to @shinuza for spotting this! --- factory/fuzzy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'factory') diff --git a/factory/fuzzy.py b/factory/fuzzy.py index 0137ba9..564264e 100644 --- a/factory/fuzzy.py +++ b/factory/fuzzy.py @@ -289,10 +289,10 @@ class FuzzyDateTime(BaseFuzzyDateTime): def _check_bounds(self, start_dt, end_dt): if start_dt.tzinfo is None: raise ValueError( - "FuzzyDateTime only handles aware datetimes, got start=%r" + "FuzzyDateTime requires timezone-aware datetimes, got start=%r" % start_dt) if end_dt.tzinfo is None: raise ValueError( - "FuzzyDateTime only handles aware datetimes, got end=%r" + "FuzzyDateTime requires timezone-aware datetimes, got end=%r" % end_dt) super(FuzzyDateTime, self)._check_bounds(start_dt, end_dt) -- cgit v1.2.3