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(
82
82
call = hookrecorder .popcall ("pytest_xdist_setupnodes" )
83
83
assert len (call .specs ) == 2
84
84
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" )}
90
90
assert len (hm .group ) == 2
91
91
hm .teardown_nodes ()
92
92
assert not len (hm .group )
You can’t perform that action at this time.
0 commit comments