From 17d0b790699b707291b7a180f329f8950bf4fc25 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 21 Apr 2018 11:23:06 +0200 Subject: [PATCH] Skip testing timezone with seconds for Python < 3.6 --- radicale/tests/test_base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radicale/tests/test_base.py b/radicale/tests/test_base.py index 7c43cc5..f14484d 100644 --- a/radicale/tests/test_base.py +++ b/radicale/tests/test_base.py @@ -23,6 +23,7 @@ import base64 import os import posixpath import shutil +import sys import tempfile import xml.etree.ElementTree as ET from functools import partial @@ -1405,6 +1406,8 @@ class BaseRequestsMixIn: assert status == 404 assert headers.get("test") == "123" + @pytest.mark.skipif(sys.version_info < (3, 6), + reason="Unsupported in Python < 3.6") def test_timezone_seconds(self): """Verify that timezones with minutes and seconds work.""" status, _, _ = self.request("MKCALENDAR", "/calendar.ics/")