Skip to content

Commit 48c08d0

Browse files
author
peterstone2017
committed
skip setting multi cookie headers test for py 3.7
1 parent a5e26bf commit 48c08d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unittests/test_datumref.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import sys
12
import unittest
23
from http.cookies import SimpleCookie
4+
from unittest import skipIf
35

46
from dateutil import parser
57
from dateutil.parser import ParserError
@@ -54,6 +56,8 @@ def test_parse_cookie_attr_same_site_explicit_none(self):
5456
def test_parse_to_rpc_http_cookie_list_none(self):
5557
self.assertEqual(parse_to_rpc_http_cookie_list(None), None)
5658

59+
@skipIf(sys.version_info < (3, 8, 0),
60+
"Skip the tests for Python 3.7 and below")
5761
def test_parse_to_rpc_http_cookie_list_valid(self):
5862
headers = [
5963
'foo=bar; Path=/some/path; Secure; HttpOnly; Domain=123; '

0 commit comments

Comments
 (0)