Add docstring to tests for #277
This commit is contained in:
@@ -889,6 +889,7 @@ class TestLoadScope:
|
|||||||
'test_a.py::TestB', result.outlines) in ({'gw0': 10}, {'gw1': 10})
|
'test_a.py::TestB', result.outlines) in ({'gw0': 10}, {'gw1': 10})
|
||||||
|
|
||||||
def test_module_single_start(self, testdir):
|
def test_module_single_start(self, testdir):
|
||||||
|
"""Fix test suite never finishing in case all workers start with a single test (#277)."""
|
||||||
test_file1 = """
|
test_file1 = """
|
||||||
import pytest
|
import pytest
|
||||||
def test():
|
def test():
|
||||||
@@ -976,6 +977,7 @@ class TestFileScope:
|
|||||||
test_b_workers_and_test_count in ({'gw0': 0}, {'gw1': 10})
|
test_b_workers_and_test_count in ({'gw0': 0}, {'gw1': 10})
|
||||||
|
|
||||||
def test_module_single_start(self, testdir):
|
def test_module_single_start(self, testdir):
|
||||||
|
"""Fix test suite never finishing in case all workers start with a single test (#277)."""
|
||||||
test_file1 = """
|
test_file1 = """
|
||||||
import pytest
|
import pytest
|
||||||
def test():
|
def test():
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ class LoadScopeScheduling:
|
|||||||
for node in self.nodes:
|
for node in self.nodes:
|
||||||
self._assign_work_unit(node)
|
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:
|
for node in self.nodes:
|
||||||
self._reschedule(node)
|
self._reschedule(node)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user