From 515a5c9d18112dac1e94b12dabb6259920c1e5ba Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 9 Sep 2018 14:58:43 +0200 Subject: [PATCH] cosmetics --- radicale/config.py | 2 +- radicale/tests/test_server.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/radicale/config.py b/radicale/config.py index edd01ac..d50224b 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -162,7 +162,7 @@ INITIAL_CONFIG = OrderedDict([ "help": "path where collections are stored", "type": str}), ("max_sync_token_age", { - "value": 2592000, # 30 days + "value": "2592000", # 30 days "help": "delete sync token that are older", "type": int}), ("hook", { diff --git a/radicale/tests/test_server.py b/radicale/tests/test_server.py index 3254ae7..40a6298 100644 --- a/radicale/tests/test_server.py +++ b/radicale/tests/test_server.py @@ -107,9 +107,8 @@ class TestBaseServerRequests: status, _, _ = self.request("GET", "/") assert status == 302 + @pytest.mark.skipif(not server.HAS_IPV6, reason="IPv6 not supported") def test_ipv6(self): - if not server.HAS_IPV6: - pytest.skip("IPv6 not supported") with socket.socket(socket.AF_INET6, socket.SOCK_STREAM) as sock: sock.setsockopt(server.IPPROTO_IPV6, server.IPV6_V6ONLY, 1) try: