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