summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera <hugo@whynothugo.nl>2023-02-14 10:21:43 +0100
committerHugo <hugo@whynothugo.nl>2023-02-14 10:29:57 +0100
commit62f28e0b3c8c7e9435044d78bd6941e120c667e5 (patch)
tree95d7368049624a721eb754be4400a30f2ab870fe
parent490e19925dd9e2368ad00033651c16c6d29d9de3 (diff)
Update another test for recent pytz changes
Fixes: https://github.com/pimutils/khal/issues/1222
-rw-r--r--tests/vtimezone_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/vtimezone_test.py b/tests/vtimezone_test.py
index d06df123..b59380be 100644
--- a/tests/vtimezone_test.py
+++ b/tests/vtimezone_test.py
@@ -77,6 +77,7 @@ def test_bogota():
b'']
if version.parse(pytz.__version__) > version.Version('2017.1'):
vbogota[4] = b'TZNAME:-05'
- vbogota.insert(4, b'RDATE:20380118T221407')
+ if version.parse(pytz.__version__) < version.Version('2022.7'):
+ vbogota.insert(4, b'RDATE:20380118T221407')
assert create_timezone(bogota, atime, atime).to_ical().split(b'\r\n') == vbogota