Skip to content

Commit

Permalink
support pytest-xdist 2
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Aug 16, 2020
1 parent e613a88 commit 107155e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_django/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def django_db_modify_db_settings_tox_suffix():
def django_db_modify_db_settings_xdist_suffix(request):
skip_if_no_django()

xdist_suffix = getattr(request.config, "slaveinput", {}).get("slaveid")
xdist_suffix = getattr(request.config, "workerinput", {}).get("workerid")
if xdist_suffix:
# Put a suffix like _gw0, _gw1 etc on xdist processes
_set_suffix_to_test_databases(suffix=xdist_suffix)
Expand Down

1 comment on commit 107155e

@D3X
Copy link

@D3X D3X commented on 107155e Aug 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@graingert @blueyed I think it would be nice to get this fix released sooner rather than later

Please sign in to comment.