Skip to content

Commit db5166f

Browse files
authored
Merge pull request #861 from pytest-dev/graingert-patch-1
support pytest-xdist 2
2 parents 210ee60 + 107155e commit db5166f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_django/fixtures.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def django_db_modify_db_settings_tox_suffix():
4646
def django_db_modify_db_settings_xdist_suffix(request):
4747
skip_if_no_django()
4848

49-
xdist_suffix = getattr(request.config, "slaveinput", {}).get("slaveid")
49+
xdist_suffix = getattr(request.config, "workerinput", {}).get("workerid")
5050
if xdist_suffix:
5151
# Put a suffix like _gw0, _gw1 etc on xdist processes
5252
_set_suffix_to_test_databases(suffix=xdist_suffix)

0 commit comments

Comments
 (0)