@@ -30,7 +30,7 @@ def pytest_xdist_rsyncfinish(source, gateways):
30
30
"""called after rsyncing a directory to remote gateways takes place."""
31
31
32
32
33
- @pytest .mark . firstresult
33
+ @pytest .hookspec ( firstresult = True )
34
34
def pytest_xdist_getremotemodule ():
35
35
"""called when creating remote node"""
36
36
@@ -51,12 +51,12 @@ def pytest_xdist_node_collection_finished(node, ids):
51
51
"""called by the controller node when a worker node finishes collecting."""
52
52
53
53
54
- @pytest .mark . firstresult
54
+ @pytest .hookspec ( firstresult = True )
55
55
def pytest_xdist_make_scheduler (config , log ):
56
56
"""return a node scheduler implementation"""
57
57
58
58
59
- @pytest .mark . firstresult
59
+ @pytest .hookspec ( firstresult = True )
60
60
def pytest_xdist_auto_num_workers (config ):
61
61
"""
62
62
Return the number of workers to spawn when ``--numprocesses=auto`` is given in the
@@ -66,7 +66,7 @@ def pytest_xdist_auto_num_workers(config):
66
66
"""
67
67
68
68
69
- @pytest .mark . firstresult
69
+ @pytest .hookspec ( firstresult = True )
70
70
def pytest_handlecrashitem (crashitem , report , sched ):
71
71
"""
72
72
Handle a crashitem, modifying the report if necessary.
0 commit comments