diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-03-26 22:07:19 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-03-26 22:07:19 +0100 |
commit | 40d4a4b13d4ca959879d1798f24d510fd7abf4dc (patch) | |
tree | 8e18c08cd36150e46ba585aceba93bf6f4ceb531 /factory | |
parent | 6b9a2b5d9aaa1f4fb06819240a7b243fcfd79943 (diff) | |
download | factory-boy-40d4a4b13d4ca959879d1798f24d510fd7abf4dc.tar factory-boy-40d4a4b13d4ca959879d1798f24d510fd7abf4dc.tar.gz |
Fix typo in FuzzyDateTime (Closes #189).
Thanks to @shinuza for spotting this!
Diffstat (limited to 'factory')
-rw-r--r-- | factory/fuzzy.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |