Skip to content

Commit e6d85e7

Browse files
author
Abhilash Joseph C
committed
Fix for #29
1 parent 4079dc6 commit e6d85e7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ pyyaml==5.3.1
33
pycurl==7.43.0.6
44
jsonpath==0.82
55
jmespath==0.10.0
6-
jsonschema==3.2.0
6+
jsonschema==3.2.0
7+
certifi>=2020.11.8

resttest3/testcase.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from typing import List, Dict, Optional
1010
from urllib.parse import urljoin
1111

12+
import certifi
1213
import pycurl
1314

1415
from resttest3.binding import Context
@@ -616,6 +617,7 @@ def run(self, context=None, timeout=None, curl_handler=None):
616617
curl_handler.setopt(curl_handler.COOKIELIST, "ALL")
617618
except pycurl.error:
618619
curl_handler = pycurl.Curl()
620+
curl_handler.setopt(pycurl.CAINFO, certifi.where()) # Fix for #29
619621
else:
620622
curl_handler = pycurl.Curl()
621623

0 commit comments

Comments
 (0)