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; -*-
|
# -*- coding: utf-8; -*-
|
||||||
|
|
||||||
|
import sys
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import colander
|
import colander
|
||||||
|
|
@ -57,6 +58,8 @@ class TestAppInfoView(WebTestCase):
|
||||||
# invalid
|
# invalid
|
||||||
with patch.object(self.request, "GET", new={"tzname": "bad_name"}):
|
with patch.object(self.request, "GET", new={"tzname": "bad_name"}):
|
||||||
result = view.configure_check_timezone()
|
result = view.configure_check_timezone()
|
||||||
|
# nb. this check won't work for python 3.8
|
||||||
|
if sys.version_info >= (3, 9):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
result["invalid"], "'No time zone found with key bad_name'"
|
result["invalid"], "'No time zone found with key bad_name'"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue