From 1cb5ec82dc3534f0e6e2514a3822a387d112497d Mon Sep 17 00:00:00 2001 From: Michael Twomey Date: Wed, 26 Feb 2014 11:33:13 +0000 Subject: Bumping to 0.1.9 and releasing. --- README.rst | 6 ++++++ iso8601/test_iso8601.py | 1 + setup.py | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 254be3c..b924342 100644 --- a/README.rst +++ b/README.rst @@ -102,6 +102,12 @@ Python 2.5 is not supported (too old for the tests for the most part). It could Changes ======= +0.1.9 +----- + +* Lots of fixes tightening up parsing from jdanjou. In particular more invalid cases are treated as errors. Also includes fixes for tests (which is how these invalid cases got in in the first place). +* Release addresses https://bitbucket.org/micktwomey/pyiso8601/issue/13/new-release-based-on-critical-bug-fix + 0.1.8 ----- diff --git a/iso8601/test_iso8601.py b/iso8601/test_iso8601.py index 7f406b5..18e5ff0 100644 --- a/iso8601/test_iso8601.py +++ b/iso8601/test_iso8601.py @@ -39,6 +39,7 @@ def test_parse_utc_different_default(): ("20114-01-03T01:45:49", "Unable to parse date string"), ]) def test_parse_invalid_date(invalid_date, error_string): + assert isinstance(invalid_date, str) or invalid_date is None # Why? 'cos I've screwed up the parametrize before :) with pytest.raises(iso8601.ParseError) as exc: iso8601.parse_date(invalid_date) assert exc.errisinstance(iso8601.ParseError) diff --git a/setup.py b/setup.py index 192911f..1d1c35b 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ long_description = open(os.path.join(os.path.dirname(__file__), "README.rst")).r setup( name="iso8601", - version="0.1.8", + version="0.1.9", description=long_description.split("\n")[0], long_description=long_description, author="Michael Twomey", -- cgit v1.2.1