-
Notifications
You must be signed in to change notification settings - Fork 365
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
http: only close connector if it is available #779
http: only close connector if it is available #779
Conversation
For py 3.6, I think you need |
97d5dda
to
2486401
Compare
Ah, right. I'll just skip these under 3.6 (as we do in test_asyn, https://github.com/intake/filesystem_spec/blob/e9bd63f795d84c35898bef3223fc7e055d49c774/fsspec/tests/test_async.py#L56) |
That's another solution :) |
I am running the tests again, but the windows async failure is a little worrying, even if it was a one-off. |
I recall seeing this error before too. Would you mind explaining what |
The filesystem's loop is running in another explicit thread, and we manipulate the loop object directly to get it to do things (i.e., not using async/await). This is actually quite similar in effect to specifying no loop/asyncronous flags at all and calling the blocking functions. |
Perhaps try changing
(don't know why this should show up just now...) |
The only thing that I guess cause this to show up now is the order of tests, let me temporarily move the test to the end and see if it passes or not. |
OK, well it passed - we can revisit if it happens again. |
Stuff like
asyncio-retry
offer their own clients which proxy the originalClientSession
, and they do not bind stuff like_connector
directly. Since this is a private-attribute, it might be nicer if we access it optionally and only try to close if we can find it.