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

Tried to write a test using `--boxed`, but it fails due to
https://github.com/pytest-dev/pytest-forked/issues/30.
This commit is contained in:
Daniel Hahler 2020-04-07 08:07:20 +02:00 committed by GitHub
parent 3a4435fb59
commit bf3e64d473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 21 deletions

View File

@ -423,27 +423,6 @@ class TestExecutionNonForked(BaseFunctionalTests):
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(