@@ -59,10 +59,10 @@ def _get_xdist_workerinput(config_node):
5959 return workerinput
6060
6161
62- def _is_master (config ):
62+ def _is_xdist_controller (config ):
6363 """
6464 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.
6666 """
6767 return _get_xdist_workerinput (config ) is None
6868
@@ -73,7 +73,7 @@ def pytest_configure(config):
7373 register a custom marker for MypyItems,
7474 and configure the plugin based on the CLI.
7575 """
76- if _is_master (config ):
76+ if _is_xdist_controller (config ):
7777
7878 # Get the path to a temporary file and delete it.
7979 # The first MypyItem to run will see the file does not exist,
@@ -294,7 +294,7 @@ def from_session(cls, session) -> "MypyResults":
294294 """Load (or generate) cached mypy results for a pytest session."""
295295 results_path = (
296296 session .config ._mypy_results_path
297- if _is_master (session .config )
297+ if _is_xdist_controller (session .config )
298298 else _get_xdist_workerinput (session .config )["_mypy_results_path" ]
299299 )
300300 with FileLock (results_path + ".lock" ):
@@ -323,7 +323,7 @@ class MypyWarning(pytest.PytestWarning):
323323
324324def pytest_terminal_summary (terminalreporter , config ):
325325 """Report stderr and unrecognized lines from stdout."""
326- if not _is_master (config ):
326+ if not _is_xdist_controller (config ):
327327 # This isn't hit in pytest 5.0 for some reason.
328328 return # pragma: no cover
329329 try :
0 commit comments