forked from goodboy/tractor
1
0
Fork 0

Skip debugger tests on non-trio backends

stream_channel_shield
Tyler Goodlet 2020-12-17 16:37:05 -05:00
parent 797bcc1df2
commit 47f68a0532
1 changed files with 6 additions and 0 deletions

View File

@ -42,10 +42,16 @@ def mk_cmd(ex_name: str) -> str:
@pytest.fixture
def spawn(
start_method,
testdir,
arb_addr,
) -> 'pexpect.spawn':
if start_method != 'trio':
pytest.skip(
"Debugger tests are only supported on the trio backend"
)
def _spawn(cmd):
return testdir.spawn(
cmd=mk_cmd(cmd),