Skip to content

Commit

Permalink
remove name from test auto_spec to workaround py3.12.4 breaking chang…
Browse files Browse the repository at this point in the history
…es (#890)
  • Loading branch information
bdraco authored Jun 21, 2024
1 parent c73ad7f commit 647dd99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def _setsockopt(*args, **kwargs):
raise OSError("Socket error")

mock_socket: socket.socket = create_autospec(
socket.socket, spec_set=True, instance=True, name="bad_buffer_socket"
socket.socket, spec_set=True, instance=True
)
mock_socket.type = socket.SOCK_STREAM
mock_socket.fileno.return_value = 1
Expand Down Expand Up @@ -311,7 +311,7 @@ def _setsockopt(*args, **kwargs):
raise OSError("Socket error")

mock_socket: socket.socket = create_autospec(
socket.socket, spec_set=True, instance=True, name="bad_buffer_socket"
socket.socket, spec_set=True, instance=True
)
mock_socket.type = socket.SOCK_STREAM
mock_socket.fileno.return_value = 1
Expand Down

0 comments on commit 647dd99

Please sign in to comment.