From 0d80456bc5d94c20aa4482cbc11bd08e6c4e7712 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 26 Mar 2020 22:38:59 +0100 Subject: [PATCH] rm TestExecutionForked - xdist.boxed has gone since long Tried to write a test using `--boxed`, but it fails due to https://github.com/pytest-dev/pytest-forked/issues/30. --- testing/test_runner.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/testing/test_runner.py b/testing/test_runner.py index 203e4b07d33..e3b62bbe68f 100644 --- a/testing/test_runner.py +++ b/testing/test_runner.py @@ -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(