From bf3e64d473f5ee1b05f18d61de7affcfc3f55687 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 7 Apr 2020 08:07:20 +0200 Subject: [PATCH] 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. --- testing/test_runner.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/testing/test_runner.py b/testing/test_runner.py index ab4ae67e5..00732d03b 100644 --- a/testing/test_runner.py +++ b/testing/test_runner.py @@ -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(