python-zeep
python-zeep copied to clipboard
Sockets not closed by Zeep resulting in resource warning
I was trying to perform basic zeep query
from zeep import Client
if __name__ == "__main__":
client = Client(wsdl='http://www.dneonline.com/calculator.asmx?wsdl')
print(client.service.Add(1,2))
But when I ran the above code I get the following warning
sys:1: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('x.x.x.x', 54241), raddr=('y.y.y.y', 80)>
- zeep version is 3.4.0
- wsdl file is http://www.dneonline.com/calculator.asmx?wsdl