summaryrefslogtreecommitdiff
path: root/iso8601
diff options
context:
space:
mode:
authorMichael Twomey <michael.twomey@fieldaware.com>2014-02-26 11:33:13 +0000
committerMichael Twomey <michael.twomey@fieldaware.com>2014-02-26 11:33:13 +0000
commit1cb5ec82dc3534f0e6e2514a3822a387d112497d (patch)
tree9573e0c3c0a49ac44226fbb3e12c7a2f58644cb9 /iso8601
parentac6ca2de48116c6a68c787c2cd7fdaedf2f80755 (diff)
downloadpyiso8601-1cb5ec82dc3534f0e6e2514a3822a387d112497d.tar.gz
Bumping to 0.1.9 and releasing.
Diffstat (limited to 'iso8601')
-rw-r--r--iso8601/test_iso8601.py1
1 files changed, 1 insertions, 0 deletions
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)