MCPcopy
hub / github.com/pytest-dev/pytest / test_sysexec_failing

Method test_sysexec_failing

testing/_py/test_local.py:927–934  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

925 assert out.find(x.basename) != -1
926
927 def test_sysexec_failing(self):
928 try:
929 from py._process.cmdexec import ExecutionFailed # py library
930 except ImportError:
931 ExecutionFailed = RuntimeError # py vendored
932 x = local.sysfind("false")
933 with pytest.raises(ExecutionFailed):
934 x.sysexec("aksjdkasjd")
935
936 def test_make_numbered_dir(self, tmpdir):
937 tmpdir.ensure("base.not_an_int", dir=1)

Callers

nothing calls this directly

Calls 2

sysfindMethod · 0.80
sysexecMethod · 0.80

Tested by

no test coverage detected