Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/posix/conftest.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import pytest
import sys

if sys.platform.startswith("linux"):
unix_like = sys.platform.startswith("linux") or "bsd" in sys.platform

if unix_like:
import termios


# ignore all tests in this folder if not on linux
# ignore all tests in this folder if not on a Unix-like platform
def pytest_ignore_collect(path, config):
if not sys.platform.startswith("linux"):
if not unix_like:
return True


Expand Down