diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 2ecff57..697070e 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -889,6 +889,7 @@ class TestLoadScope: 'test_a.py::TestB', result.outlines) in ({'gw0': 10}, {'gw1': 10}) def test_module_single_start(self, testdir): + """Fix test suite never finishing in case all workers start with a single test (#277).""" test_file1 = """ import pytest def test(): @@ -976,6 +977,7 @@ class TestFileScope: test_b_workers_and_test_count in ({'gw0': 0}, {'gw1': 10}) def test_module_single_start(self, testdir): + """Fix test suite never finishing in case all workers start with a single test (#277).""" test_file1 = """ import pytest def test(): diff --git a/xdist/scheduler/loadscope.py b/xdist/scheduler/loadscope.py index 0677e3e..3c8381a 100644 --- a/xdist/scheduler/loadscope.py +++ b/xdist/scheduler/loadscope.py @@ -380,7 +380,7 @@ class LoadScopeScheduling: for node in self.nodes: self._assign_work_unit(node) - # Ensure nodes start with at least two work units if possible + # Ensure nodes start with at least two work units if possible (#277) for node in self.nodes: self._reschedule(node)