Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix
  • Loading branch information
sshane committed Jul 26, 2025
commit fc7e83de23aca255d79f583dcc0bcb29eb1aa924
10 changes: 5 additions & 5 deletions testing/test_workermanage.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def test_popen_makegateway_events(
call = hookrecorder.popcall("pytest_xdist_setupnodes")
assert len(call.specs) == 2

call = hookrecorder.popcall("pytest_xdist_newgateway")
assert call.gateway.spec == execnet.XSpec("execmodel=main_thread_only//popen")
assert call.gateway.id == "gw0"
call = hookrecorder.popcall("pytest_xdist_newgateway")
assert call.gateway.id == "gw1"
# check expected gateways
gw_calls = [hookrecorder.popcall("pytest_xdist_newgateway"),
hookrecorder.popcall("pytest_xdist_newgateway")]
assert {c.gateway.id for c in gw_calls} == {"gw0", "gw1"}
assert {c.gateway.spec for c in gw_calls} == {execnet.XSpec("execmodel=main_thread_only//popen")}
assert len(hm.group) == 2
hm.teardown_nodes()
assert not len(hm.group)
Expand Down
Loading