Skip to content

Commit

Permalink
Add pragma on unreachable Windows code (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Jul 10, 2023
1 parent 1f941c0 commit 9c810ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/importer/circular_import_a.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Used by test_importer.py
from .circular_import_b import foo # noqa

bar = 123
bar = 123 # pragma: no cover
2 changes: 1 addition & 1 deletion tests/importer/circular_import_b.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Used by test_importer.py
from .circular_import_a import bar # noqa

foo = 123
foo = 123 # pragma: no cover
4 changes: 2 additions & 2 deletions tests/test_auto_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

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:
Expand Down

0 comments on commit 9c810ea

Please sign in to comment.