mindflayer / python-mocket

a socket mock framework - for all kinds of socket animals, web-clients included
BSD 3-Clause "New" or "Revised" License
281 stars 42 forks source link

missing socket.getblocking #227

Closed kj4tmp closed 5 months ago

kj4tmp commented 5 months ago

socket.getblocking appears to be missing.

Here is a minimally reproducible example:

import socket

import mocket

my_mocket = mocket.mocket.MocketSocket(socket.AF_INET, socket.SOCK_STREAM)
my_mocket.connect(("locahost", 1234))
my_mocket.setblocking(False)

print(my_mocket.getblocking())  # expect False but get None here.
mindflayer commented 5 months ago

Hi @kj4tmp, thanks for opening this issue. Here is a new version of Mocket with the missing method: https://pypi.org/project/mocket/3.12.5/