Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove TestExecutionForked - xdist.boxed has gone since long #7021

Merged
merged 2 commits into from
Apr 7, 2020
Merged
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
21 changes: 0 additions & 21 deletions testing/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,27 +423,6 @@ def test_func():
assert False, "did not raise"


class TestExecutionForked(BaseFunctionalTests):
pytestmark = pytest.mark.skipif("not hasattr(os, 'fork')")

def getrunner(self):
# XXX re-arrange this test to live in pytest-xdist
boxed = pytest.importorskip("xdist.boxed")
return boxed.forked_run_report

def test_suicide(self, testdir) -> None:
reports = testdir.runitem(
"""
def test_func():
import os
os.kill(os.getpid(), 15)
"""
)
rep = reports[0]
assert rep.failed
assert rep.when == "???"


class TestSessionReports:
def test_collect_result(self, testdir) -> None:
col = testdir.getmodulecol(
Expand Down