From 8e8a8fa4b9b1b88c8afc9ce92e3c2a8bc5466541 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 27 Oct 2019 00:41:23 +0200 Subject: [PATCH] pytester: spawn: do not skip FreeBSD Fixes https://github.com/pytest-dev/pytest/issues/6069 --- changelog/6069.improvement.rst | 1 + src/_pytest/pytester.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 changelog/6069.improvement.rst diff --git a/changelog/6069.improvement.rst b/changelog/6069.improvement.rst new file mode 100644 index 000000000..e60d154bb --- /dev/null +++ b/changelog/6069.improvement.rst @@ -0,0 +1 @@ +``pytester.spawn`` does not skip/xfail tests on FreeBSD anymore unconditionally. diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index 8a218d5e5..7eb912751 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -1194,8 +1194,6 @@ class Testdir: pexpect = pytest.importorskip("pexpect", "3.0") if hasattr(sys, "pypy_version_info") and "64" in platform.machine(): pytest.skip("pypy-64 bit not supported") - if sys.platform.startswith("freebsd"): - pytest.xfail("pexpect does not work reliably on freebsd") if not hasattr(pexpect, "spawn"): pytest.skip("pexpect.spawn not available") logfile = self.tmpdir.join("spawn.out").open("wb")