This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
from xdist.dsession import LoadScheduling | |
""" | |
Custom scheduler implementation that prevents running in parallel tests, that belong same class (TestCase). | |
Custom scheduler support implemented in this PR: https://github.com/pytest-dev/pytest-xdist/pull/89 | |
""" | |
class GroupedLoadScheduling(LoadScheduling): | |
def check_schedule(self, node, duration=0): |