summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst6
-rw-r--r--iso8601/test_iso8601.py1
-rw-r--r--setup.py2
3 files changed, 8 insertions, 1 deletions
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",