Skip to content

Commit

Permalink
Fix CI (#1185)
Browse files Browse the repository at this point in the history
* Reformat code using black 23.x

* fix compat with tox 4
  • Loading branch information
mhils committed Feb 13, 2023
1 parent 23d990e commit 669969e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,6 @@ def sendall(self, buf, flags=0):
buf = _text_to_bytes_and_warn("buf", buf)

with _ffi.from_buffer(buf) as data:

left_to_send = len(buf)
total_sent = 0

Expand Down
2 changes: 0 additions & 2 deletions src/OpenSSL/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -2556,7 +2556,6 @@ def export(


class PKCS7:

_pkcs7: Any

def type_is_signed(self) -> bool:
Expand Down Expand Up @@ -2920,7 +2919,6 @@ def callback_args(self) -> Any:

def raise_if_problem(self, exceptionType: Type[Exception] = Error) -> None:
if self._problems:

# Flush the OpenSSL error queue
try:
_exception_from_error_queue(exceptionType)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,10 @@ def interact_in_memory(client_conn, server_conn):

# Copy stuff from each side's send buffer to the other side's
# receive buffer.
for (read, write) in [
for read, write in [
(client_conn, server_conn),
(server_conn, client_conn),
]:

# Give the side a chance to generate some more bytes, or succeed.
try:
data = read.recv(2**16)
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ passenv =
PATH
LD_LIBRARY_PATH
TERM
RUSTUP_TOOLCHAIN
RUSTUP_HOME
extras =
test
deps =
Expand Down

0 comments on commit 669969e

Please sign in to comment.