BUGFIX: isinstance check is wrong - #88
Conversation
… class to test is socket_original
…made when internet is off
if isinstance(args[0], socket.socket)It is saying |
|
it was a very weird thing. It claimed to be a socket class, but wasn't registering as such with tl;dr: I'm confused. |
|
we're also ignoring a bunch of socket warnings in the astroquery test suite, those may mess up your debug when done via pytest. Given this is a not sure problem and solution yet I switch this PR to be a draft, so we won't accidentally merge it, until at least there is a clear MWE snippet. |
|
Thanks @bsipocz, I forgot I could do that. Yes, this should be draft for now. |
|
Is this still relevant? |
This error:
arises if turning internet off and then creating a new socket.
I haven't figured out how to MWE this; it was happening in astroquery.gaia, but the source of the connection is buried behind so many abstraction layers that I'm just lost. I've tried hard. I would possibly recommend not merging this until/unless we have a MWE.