-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
sockets still blocked when --disable-socket is not used #65
Comments
Hi @orionlee ! Thanks for the detailed report - I'm not certain pytest-socket will play nice with pytest-remotedata - as we both want to control the behavior of You mentioned that you tried disabling that plugin, can you share how? From the CI results it looks like this is the commit that's being run - and that's passing |
The run is intended to be a normal full test that uses networks. But somehow many tests failed with Regarding disable |
Hey @orionlee ! I've changed some of the core internals of the plugin - most importantly that we no longer use an This ought to be released in 0.50.0 soon, and I hope you try it out! Closing this issue, feel free to reopen if this doesn't work out! |
I tried to integrate pytest-socket in my project.
It works mostly fine for the cases that I want sockets disabled by passing
--disable-socket
in the option.However, when I want to run the entire test suite normally with network, i.e., without passing
--disable-socket
, somehow the plugin incorrectly blocks sockets, raising error:An example from CI results:
https://github.com/orionlee/lightkurve/runs/2612809173?check_suite_focus=true
The project in question uses a variety of popular scientific computing and astronomy packages.
Unfortunately, I cannot yet reproduce it in an isolated setup. I'm still submitting this issue to see if you have any inklings on what's going on.
What I've tried so far:
Environments:
plugins: cov-2.10.1, doctestplus-0.8.0, remotedata-0.3.2, forked-1.3.0, socket-0.4.0, xdist-2.2.1
The text was updated successfully, but these errors were encountered: