From 4636e0cea4cf5ef3d0feaad9f9eea2629b4959a5 Mon Sep 17 00:00:00 2001 From: Jonathan Anderson Date: Wed, 27 Jul 2022 17:58:31 -0230 Subject: [PATCH] Run tests on BSDs, too. Now that FreeBSD support has been added to readchar/key.py, these tests run just fine. --- tests/posix/conftest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/posix/conftest.py b/tests/posix/conftest.py index f0b55a1..0275910 100644 --- a/tests/posix/conftest.py +++ b/tests/posix/conftest.py @@ -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