Skip to content

Commit 10f0cf8

Browse files
patchback[bot]VizonexbdracoDreamsorcerer
authored
[PR #10922/5fac5f19 backport][3.12] Add Winloop to test suite if User is using Windows (#10930)
Co-authored-by: Vizonex <[email protected]> Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: Sam Bull <[email protected]>
1 parent 4056375 commit 10f0cf8

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

CHANGES/10922.contrib.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added Winloop to test suite to support in the future -- by :user:`Vizonex`.

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ Vincent Maillol
359359
Vitalik Verhovodov
360360
Vitaly Haritonsky
361361
Vitaly Magerya
362+
Vizonex
362363
Vladimir Kamarzin
363364
Vladimir Kozlovski
364365
Vladimir Rutsky

docs/spelling_wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ websocket’s
368368
websockets
369369
Websockets
370370
wildcard
371+
Winloop
371372
Workflow
372373
ws
373374
wsgi

requirements/base.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
gunicorn
44
uvloop; platform_system != "Windows" and implementation_name == "cpython" # MagicStack/uvloop#14
5+
winloop; platform_system == "Windows" and implementation_name == "cpython"

requirements/base.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pycparser==2.22
4343
typing-extensions==4.13.2
4444
# via multidict
4545
uvloop==0.21.0 ; platform_system != "Windows" and implementation_name == "cpython"
46+
winloop==0.1.8; platform_system == "Windows" and implementation_name == "cpython"
4647
# via -r requirements/base.in
4748
yarl==1.20.0
4849
# via -r requirements/runtime-deps.in

tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434

3535

3636
try:
37-
import uvloop
37+
if sys.platform == "win32":
38+
import winloop as uvloop
39+
else:
40+
import uvloop
3841
except ImportError:
3942
uvloop = None # type: ignore[assignment]
4043

0 commit comments

Comments
 (0)