3
0
Fork 0

test: skip unsupported test for python 3.8

This commit is contained in:
Lance Edgar 2025-12-17 10:46:02 -06:00
parent 652477bee0
commit 131eb22580

View file

@ -1,5 +1,6 @@
# -*- coding: utf-8; -*-
import sys
from unittest.mock import patch
import colander
@ -57,6 +58,8 @@ class TestAppInfoView(WebTestCase):
# invalid
with patch.object(self.request, "GET", new={"tzname": "bad_name"}):
result = view.configure_check_timezone()
# nb. this check won't work for python 3.8
if sys.version_info >= (3, 9):
self.assertEqual(
result["invalid"], "'No time zone found with key bad_name'"
)