Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using image_regression on bytesIO output raise an SSL socket error #164

Open
12rambau opened this issue Mar 10, 2024 · 0 comments
Open

using image_regression on bytesIO output raise an SSL socket error #164

12rambau opened this issue Mar 10, 2024 · 0 comments

Comments

@12rambau
Copy link
Contributor

I'm using the following code in my tests and I receive a weird error after completion:

    def test_plot_by_features(self, gaul, image_regression):
        fc = gaul.limit(10).select(["ADM0_CODE", "ADM1_CODE", "ADM2_CODE"])
        fig, ax = fc.geetools.plot_by_features()
        fig.savefig(buf := io.BytesIO())
        image_regression.check(buf.getvalue())
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=10, family=2, type=1, proto=6, laddr=('172.16.5.4', 40806), raddr=('142.250.180.10', 443)>

My guess is taht there are a missing context managers either on your side or mine. I'll continue to investigate but I wanted to record it before I forgot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant