Skip to content

Commit 5d12833

Browse files
committed
Have mypy ignore test_is_socket_true on Windows.
1 parent eea8977 commit 5d12833

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_paths_stdlib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ def test_stat(BASE: PathPlus):
129129

130130
@pytest.mark.skipif(not hasattr(socket, "AF_UNIX"), reason="Unix sockets required")
131131
def test_is_socket_true(BASE: PathPlus):
132+
if sys.platform == "win32":
133+
return
134+
132135
P = PathPlus(BASE, "mysock")
133136
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
134137
try:

0 commit comments

Comments
 (0)