Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baekdohyeop committed Nov 28, 2021
1 parent 7746534 commit a82e5cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/xdist/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,14 @@ def pytest_collection_modifyitems(self, session, config, items):
if config.getvalue("loadgroup"):
for item in items:
mark = item.get_closest_marker("xdist_group")

if not mark:
continue

gname = (
mark.args[0]
if len(mark.args) > 0
else mark.kwargs.get("name", "default")
)
if gname:
item._nodeid = "{}@{}".format(item.nodeid, gname)
item._nodeid = "{}@{}".format(item.nodeid, gname)

@pytest.hookimpl
def pytest_collection_finish(self, session):
Expand Down

0 comments on commit a82e5cf

Please sign in to comment.