Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added Windows CI.
Fixed failing tests:
The constructor
ConnectionError("abandon ship")
had wrong arguments (it takes 3), so as writtenstr(ConnectionError("abandon ship"))
will fail. On *nix it seems to re-raise the object as an exception as is, but on Windows it re-raisesstr(error)
and fails withexception str() failed
.This
DummyConnection
object is being compared to another in a heap. Not sure why it only hitslt
on Windows, but if these objects are to be compared, they should havelt
implemented. Probably a real bug that only shows up on Windows.Looks like the SSL context is being created somewhere else than in
AIOHttpConnection
as a side-effect, causing the number of calls toload_verify_locations
to be different. To fix I used a mock SSL context instead of patching the global method, therefore only counting the calls we makle.Issues Resolved
Closes #347.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.