-
-
Notifications
You must be signed in to change notification settings - Fork 692
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
test under py3.10 #1070
Merged
graingert
merged 27 commits into
encode:master
from
graingert:avoid-deprecated-get-event-loop
Jul 30, 2021
Merged
test under py3.10 #1070
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
a51908a
avoid deprecated asyncio.get_event_loop
graingert d2e8f67
test on py3.10
graingert 16ee7de
get mkdocs from git for py3.10 support
graingert 9f94120
a loop must now be running to construct a WebSocketProtocol
graingert d03333d
fix py3.10 ssl deprecation warnings
graingert 224f25b
work around websockets issues
graingert 15152fc
work around httpx issues
graingert 8fa30ec
add a test that the Config(ssl_certfile) can provide the key, cert an…
graingert 9a9ce8f
regenerate usage
graingert d87c971
ssl.TLSVersion is only available on 3.7+
graingert 0e687d8
remove trustme git pin
graingert b0c171d
use released httpx version
graingert 1e2f2dc
remove workaround for fixed https://github.com/aaugustin/websockets/i…
graingert 871f01d
Update .github/workflows/test-suite.yml
graingert 1c97ac8
Merge branch 'master' into avoid-deprecated-get-event-loop
graingert 81f9d28
fix missing colon
graingert 5678b1a
bump websockets
graingert cf84eea
Merge branch 'master' of git://github.com/encode/uvicorn into avoid-d…
graingert 69ccd10
mkdocs is on pypi now
graingert dd9621c
use the new 3.10 beta4
graingert e881ab0
only use unreleased websockets on py3.10
graingert a3a1f45
fix websockets logger kwarg
graingert 9c7de99
fix test_loop_auto
graingert b35ac26
avoid more deprecated get_event_loop calls
graingert 9d6db97
bump websockets git commit pin
graingert d5a3d25
remove get_running_loop() test
graingert a47f259
remove unused import
graingert File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
import asyncio | ||
import platform | ||
import selectors | ||
import sys | ||
|
||
|
||
def asyncio_setup() -> None: # pragma: no cover | ||
loop: asyncio.AbstractEventLoop | ||
if ( | ||
sys.version_info.major >= 3 | ||
and sys.version_info.minor >= 8 | ||
and platform.system() == "Windows" | ||
): | ||
selector = selectors.SelectSelector() | ||
loop = asyncio.SelectorEventLoop(selector) | ||
asyncio.set_event_loop(loop) | ||
else: | ||
loop = asyncio.new_event_loop() | ||
asyncio.set_event_loop(loop) | ||
if sys.version_info >= (3, 8) and sys.platform == "win32": | ||
euri10 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) | ||
euri10 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the cause of the httpx tests failing. @tomchristie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Kludex - No idea how you tracked that down, but... 👍