Skip to content

Commit

Permalink
rm TestExecutionForked - xdist.boxed has gone since long
Browse files Browse the repository at this point in the history
Tried to write a test using `--boxed`, but it fails due to
pytest-dev/pytest-forked#30.
  • Loading branch information
blueyed committed Mar 26, 2020
1 parent f4e6338 commit e4d4f2c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions testing/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,28 +423,6 @@ def test_func():
assert False, "did not raise"


@pytest.mark.xdist_specific
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

0 comments on commit e4d4f2c

Please sign in to comment.