forked from goodboy/tractor
Skip debugger tests on non-trio backends
parent
797bcc1df2
commit
47f68a0532
|
@ -42,10 +42,16 @@ def mk_cmd(ex_name: str) -> str:
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def spawn(
|
def spawn(
|
||||||
|
start_method,
|
||||||
testdir,
|
testdir,
|
||||||
arb_addr,
|
arb_addr,
|
||||||
) -> 'pexpect.spawn':
|
) -> 'pexpect.spawn':
|
||||||
|
|
||||||
|
if start_method != 'trio':
|
||||||
|
pytest.skip(
|
||||||
|
"Debugger tests are only supported on the trio backend"
|
||||||
|
)
|
||||||
|
|
||||||
def _spawn(cmd):
|
def _spawn(cmd):
|
||||||
return testdir.spawn(
|
return testdir.spawn(
|
||||||
cmd=mk_cmd(cmd),
|
cmd=mk_cmd(cmd),
|
||||||
|
|
Loading…
Reference in New Issue