Skip to content

Commit

Permalink
Skip debugger tests on non-trio backends
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Dec 17, 2020
1 parent 797bcc1 commit 47f68a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 47f68a0

Please sign in to comment.