@@ -59,10 +59,10 @@ def _get_xdist_workerinput(config_node):
59
59
return workerinput
60
60
61
61
62
- def _is_master (config ):
62
+ def _is_xdist_controller (config ):
63
63
"""
64
64
True if the code running the given pytest.config object is running in
65
- an xdist master node or not running xdist at all.
65
+ an xdist controller node or not running xdist at all.
66
66
"""
67
67
return _get_xdist_workerinput (config ) is None
68
68
@@ -73,7 +73,7 @@ def pytest_configure(config):
73
73
register a custom marker for MypyItems,
74
74
and configure the plugin based on the CLI.
75
75
"""
76
- if _is_master (config ):
76
+ if _is_xdist_controller (config ):
77
77
78
78
# Get the path to a temporary file and delete it.
79
79
# The first MypyItem to run will see the file does not exist,
@@ -294,7 +294,7 @@ def from_session(cls, session) -> "MypyResults":
294
294
"""Load (or generate) cached mypy results for a pytest session."""
295
295
results_path = (
296
296
session .config ._mypy_results_path
297
- if _is_master (session .config )
297
+ if _is_xdist_controller (session .config )
298
298
else _get_xdist_workerinput (session .config )["_mypy_results_path" ]
299
299
)
300
300
with FileLock (results_path + ".lock" ):
@@ -323,7 +323,7 @@ class MypyWarning(pytest.PytestWarning):
323
323
324
324
def pytest_terminal_summary (terminalreporter , config ):
325
325
"""Report stderr and unrecognized lines from stdout."""
326
- if not _is_master (config ):
326
+ if not _is_xdist_controller (config ):
327
327
# This isn't hit in pytest 5.0 for some reason.
328
328
return # pragma: no cover
329
329
try :
0 commit comments