Skip to content

Commit 669969e

Browse files
authored
Fix CI (#1185)
* Reformat code using black 23.x * fix compat with tox 4
1 parent 23d990e commit 669969e

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/OpenSSL/SSL.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,6 @@ def sendall(self, buf, flags=0):
19161916
buf = _text_to_bytes_and_warn("buf", buf)
19171917

19181918
with _ffi.from_buffer(buf) as data:
1919-
19201919
left_to_send = len(buf)
19211920
total_sent = 0
19221921

src/OpenSSL/crypto.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,7 +2556,6 @@ def export(
25562556

25572557

25582558
class PKCS7:
2559-
25602559
_pkcs7: Any
25612560

25622561
def type_is_signed(self) -> bool:
@@ -2920,7 +2919,6 @@ def callback_args(self) -> Any:
29202919

29212920
def raise_if_problem(self, exceptionType: Type[Exception] = Error) -> None:
29222921
if self._problems:
2923-
29242922
# Flush the OpenSSL error queue
29252923
try:
29262924
_exception_from_error_queue(exceptionType)

tests/test_ssl.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,10 @@ def interact_in_memory(client_conn, server_conn):
359359

360360
# Copy stuff from each side's send buffer to the other side's
361361
# receive buffer.
362-
for (read, write) in [
362+
for read, write in [
363363
(client_conn, server_conn),
364364
(server_conn, client_conn),
365365
]:
366-
367366
# Give the side a chance to generate some more bytes, or succeed.
368367
try:
369368
data = read.recv(2**16)

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ passenv =
1212
PATH
1313
LD_LIBRARY_PATH
1414
TERM
15+
RUSTUP_TOOLCHAIN
16+
RUSTUP_HOME
1517
extras =
1618
test
1719
deps =

0 commit comments

Comments
 (0)