Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@pytest.mark.skipif('platform.system() == "Windows"')
def test_manhole():
with TestProcess('python', '-msamplemanhole') as target, dump_on_error(target.read):
with TestProcess(sys.executable, '-msamplemanhole') as target, dump_on_error(target.read):
wait_for_strings(target.read, TIMEOUT, 'Oneshot activation is done by signal')

with TestProcess('hunter-trace', '-p', str(target.proc.pid), 'stdlib=False') as tracer, dump_on_error(tracer.read):
Expand All @@ -32,7 +32,7 @@ def test_manhole():

@pytest.mark.skipif('platform.system() == "Windows"')
def test_manhole_reattach():
with TestProcess('python', '-msamplemanhole') as target, dump_on_error(target.read):
with TestProcess(sys.executable, '-msamplemanhole') as target, dump_on_error(target.read):
wait_for_strings(target.read, TIMEOUT, 'Oneshot activation is done by signal')

with TestProcess('hunter-trace', '-p', str(target.proc.pid), 'stdlib=False') as tracer, dump_on_error(tracer.read):
Expand Down Expand Up @@ -61,7 +61,7 @@ def test_manhole_reattach():

@pytest.mark.skipif('platform.system() == "Windows"')
def test_manhole_clean_exit():
with TestProcess('python', '-msamplemanhole') as target, dump_on_error(target.read):
with TestProcess(sys.executable, '-msamplemanhole') as target, dump_on_error(target.read):
wait_for_strings(target.read, TIMEOUT, 'Oneshot activation is done by signal')

with TestProcess('hunter-trace', '-p', str(target.proc.pid), 'stdlib=False') as tracer, dump_on_error(tracer.read):
Expand Down Expand Up @@ -90,7 +90,7 @@ def test_manhole_clean_exit():
@pytest.mark.skipif('platform.python_implementation() == "PyPy"')
@pytest.mark.skipif('not which("gdb")')
def test_gdb():
with TestProcess('python', '-msamplemanhole') as target, dump_on_error(target.read):
with TestProcess(sys.executable, '-msamplemanhole') as target, dump_on_error(target.read):
with TestProcess('hunter-trace', '-p', str(target.proc.pid), '--gdb', 'stdlib=False') as tracer, dump_on_error(tracer.read):
wait_for_strings(
tracer.read,
Expand Down
Loading