diff --git a/s3tests_boto3/functional/__init__.py b/s3tests_boto3/functional/__init__.py index 9b5abf9..33abfa6 100644 --- a/s3tests_boto3/functional/__init__.py +++ b/s3tests_boto3/functional/__init__.py @@ -155,7 +155,7 @@ def setup(): # vars from the DEFAULT section config.default_host = defaults.get("host") config.default_port = int(defaults.get("port")) - config.default_is_secure = defaults.get("is_secure") + config.default_is_secure = cfg.getboolean('DEFAULT', "is_secure") # vars from the main section config.main_access_key = cfg.get('s3 main',"access_key") diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 7ba4545..13fb300 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -6189,7 +6189,7 @@ def _simple_http_req_100_cont(host, port, is_secure, method, resource): ) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - if(is_secure == True): + if is_secure: s = ssl.wrap_socket(s); s.settimeout(5) s.connect((host, port))