File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ def test_popen_makegateway_events(
8282 call = hookrecorder .popcall ("pytest_xdist_setupnodes" )
8383 assert len (call .specs ) == 2
8484
85- call = hookrecorder . popcall ( "pytest_xdist_newgateway" )
86- assert call . gateway . spec == execnet . XSpec ( "execmodel=main_thread_only//popen" )
87- assert call . gateway . id == "gw0"
88- call = hookrecorder . popcall ( "pytest_xdist_newgateway" )
89- assert call .gateway .id == "gw1"
85+ # check expected gateways
86+ gw_calls = [ hookrecorder . popcall ( "pytest_xdist_newgateway" ),
87+ hookrecorder . popcall ( "pytest_xdist_newgateway" )]
88+ assert { c . gateway . id for c in gw_calls } == { "gw0" , "gw1" }
89+ assert { c .gateway .spec for c in gw_calls } == { execnet . XSpec ( "execmodel=main_thread_only//popen" )}
9090 assert len (hm .group ) == 2
9191 hm .teardown_nodes ()
9292 assert not len (hm .group )
You can’t perform that action at this time.
0 commit comments