Skip to content

Commit 5fac5f1

Browse files
VizonexbdracoDreamsorcerer
authored
Add Winloop to test suite if User is using Windows (#10922)
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 4152a08 commit 5fac5f1

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
@@ -369,6 +369,7 @@ Vincent Maillol
369369
Vitalik Verhovodov
370370
Vitaly Haritonsky
371371
Vitaly Magerya
372+
Vizonex
372373
Vladimir Kamarzin
373374
Vladimir Kozlovski
374375
Vladimir Rutsky

docs/spelling_wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ websocket’s
369369
websockets
370370
Websockets
371371
wildcard
372+
Winloop
372373
Workflow
373374
ws
374375
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
@@ -41,6 +41,7 @@ pycparser==2.22
4141
typing-extensions==4.13.2
4242
# via multidict
4343
uvloop==0.21.0 ; platform_system != "Windows" and implementation_name == "cpython"
44+
winloop==0.1.8; platform_system == "Windows" and implementation_name == "cpython"
4445
# via -r requirements/base.in
4546
yarl==1.20.0
4647
# 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)