From 412febd89838f454c9458b5873ca9f1535834cf0 Mon Sep 17 00:00:00 2001 From: Steven Hazel Date: Wed, 18 Nov 2015 13:39:53 -0800 Subject: [PATCH] pep8 and python 3 compatibility fixes --- xdist/dsession.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xdist/dsession.py b/xdist/dsession.py index 679baf8..6f88afc 100644 --- a/xdist/dsession.py +++ b/xdist/dsession.py @@ -373,10 +373,11 @@ class LoadScheduling: initial_batch = max(len(self.pending) // 4, 2 * len(self.nodes)) - # distribute tests round-robin up to the batch size (or until we run out) + # distribute tests round-robin up to the batch size + # (or until we run out) nodes = itertools.cycle(self.nodes) for i in range(initial_batch): - self._send_tests(nodes.next(), 1) + self._send_tests(next(nodes), 1) if not self.pending: # initial distribution sent all tests, start node shutdown