Add pragma on unreachable Windows code (#2041)

This commit is contained in:
Marcelo Trylesinski 2023-07-10 18:10:29 +02:00 committed by GitHub
parent 1f941c08ed
commit 9c810ea9b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# Used by test_importer.py
from .circular_import_b import foo # noqa
bar = 123
bar = 123 # pragma: no cover

View File

@ -1,4 +1,4 @@
# Used by test_importer.py
from .circular_import_a import bar # noqa
foo = 123
foo = 123 # pragma: no cover

View File

@ -11,8 +11,8 @@ from uvicorn.protocols.websockets.auto import AutoWebSocketsProtocol
try:
importlib.import_module("uvloop")
expected_loop = "uvloop" # pragma: py-not-win32
except ImportError: # pragma: no cover
expected_loop = "uvloop" # pragma: py-win32
except ImportError: # pragma: py-not-win32
expected_loop = "asyncio"
try: