Whenever we use the GIS instance for connecting to ArcGIS Online and the provided services we try to explicitly delete and release the GIS instance by calling del. We used the __enter__ & __exit__ pattern in our wrapper implementation, so that you can easily wrap the returned instance by a with statement. When we are running our unit tests we see some "unclosed <ssl.SSLSocket>" warnings popping up. Is there any best practice how to release the GIS instance and all related http client connections?
Solved! Go to Solution.