diff options
author | Christian Geier <geier@lostpackets.de> | 2016-02-19 20:55:08 +0100 |
---|---|---|
committer | Christian Geier <geier@lostpackets.de> | 2016-02-19 20:55:08 +0100 |
commit | 8dec47bf7d83b8e40f953703a3549dd20711a837 (patch) | |
tree | 394d207e9b1837651ae29f75eb13386edaf5d7ab /tests/backend_test.py | |
parent | f027518c2d5a68c21547df13bf4d8701f8f369a7 (diff) |
Better check for icalendar version for tests
Diffstat (limited to 'tests/backend_test.py')
-rw-r--r-- | tests/backend_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/backend_test.py b/tests/backend_test.py index 04214e79..ce58252e 100644 --- a/tests/backend_test.py +++ b/tests/backend_test.py @@ -596,7 +596,7 @@ def test_check_support(): [backend.check_support(event, '', '') for event in ical.walk()] # icalendar 3.9.2 changed how it deals with unsupported components - if icalendar.__version__ != '3.9.2': + if tuple([int(i) for i in icalendar.__version__.split('.')[:3]]) <= (3, 9, 1): ical = icalendar.Calendar.from_ical(event_rdate_period) with pytest.raises(UpdateFailed): [backend.check_support(event, '', '') for event in ical.walk()] |