Skip to content

Commit

Permalink
Arm flail attempt at windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Oct 14, 2020
1 parent 0177268 commit bcb2714
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tests/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
`examples/debugging/` scripts manually.
"""
from os import path
import platform

import pytest
import pexpect
from pexpect import popen_spawn

from conftest import repodir

Expand Down Expand Up @@ -43,11 +45,19 @@ def spawn(
arb_addr,
) -> 'pexpect.spawn':

def _spawn(cmd):
return testdir.spawn(
cmd=mk_cmd(cmd),
expect_timeout=3,
)
if platform.system() == "Windows":
def _spawn(cmd):
return popen_spawn.PopenSpawn(
cmd=mk_cmd(cmd),
expect_timeout=3,
)
else: # posix

def _spawn(cmd):
return testdir.spawn(
cmd=mk_cmd(cmd),
expect_timeout=3,
)

return _spawn

Expand Down

0 comments on commit bcb2714

Please sign in to comment.