Skip to content

Commit 9c810ea

Browse files
authored
Add pragma on unreachable Windows code (#2041)
1 parent 1f941c0 commit 9c810ea

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/importer/circular_import_a.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Used by test_importer.py
22
from .circular_import_b import foo # noqa
33

4-
bar = 123
4+
bar = 123 # pragma: no cover

tests/importer/circular_import_b.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Used by test_importer.py
22
from .circular_import_a import bar # noqa
33

4-
foo = 123
4+
foo = 123 # pragma: no cover

tests/test_auto_detection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
try:
1313
importlib.import_module("uvloop")
14-
expected_loop = "uvloop" # pragma: py-not-win32
15-
except ImportError: # pragma: no cover
14+
expected_loop = "uvloop" # pragma: py-win32
15+
except ImportError: # pragma: py-not-win32
1616
expected_loop = "asyncio"
1717

1818
try:

0 commit comments

Comments
 (0)