Skip to content

Commit

Permalink
ruff format check
Browse files Browse the repository at this point in the history
  • Loading branch information
johubertj committed Feb 28, 2025
1 parent 7474680 commit 60645c8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tests/integrationv2/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
import pytest
import threading

from common import ProviderOptions, Certificates, Ciphers, Curves, Protocols, Signatures, Cert
from common import (
ProviderOptions,
Certificates,
Ciphers,
Curves,
Protocols,
Signatures,
Cert,
)
from global_flags import get_flag, S2N_PROVIDER_VERSION, S2N_FIPS_MODE
from stat import S_IMODE

Expand Down Expand Up @@ -450,8 +458,10 @@ def supports_cipher(cls, cipher, with_curve=None):

def at_least_openssl_1_1(self) -> None:
print(f"Openssl version: {OpenSSL.get_version()}")
if (OpenSSL.get_version() < "1.1"):
raise FileNotFoundError(f"Openssl version returned {OpenSSL.get_version()}, expected at least 1.1.x.")
if OpenSSL.get_version() < "1.1":
raise FileNotFoundError(
f"Openssl version returned {OpenSSL.get_version()}, expected at least 1.1.x."
)

def setup_client(self):
cmd_line = ["openssl", "s_client"]
Expand Down

0 comments on commit 60645c8

Please sign in to comment.