Skip to content

Commit 25ccfa1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fdf1b49 commit 25ccfa1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xdist/plugin.py

+2
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,13 @@ def get_shared_data(request_or_session):
316316
@pytest.fixture(scope="session")
317317
def add_shared_data(request, worker_id):
318318
"""Adds data that will be collected from all workers and be accessible from master node in sessionfinish hook"""
319+
319320
def _add(key, value):
320321
shared = request.config.stash.setdefault(shared_key, {})
321322
if worker_id == "master":
322323
# Worker shared_data are grouped together, master data aren't
323324
shared[key] = [value]
324325
else:
325326
shared[key] = value
327+
326328
return _add

0 commit comments

Comments
 (0)