test: skip unsupported test for python 3.8
This commit is contained in:
parent
652477bee0
commit
131eb22580
1 changed files with 6 additions and 3 deletions
|
|
@ -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'"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue