From ef5dcde9772c92763ba39db7a2dc98340a6d6f3e Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Thu, 4 Apr 2024 01:29:58 +0300 Subject: [PATCH] each: remove incorrect `mark_test_pending` implementation This code is bogus copy/paste; presumably it's not executed in practice so make it raise `NotImplementedError`. --- src/xdist/scheduler/each.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/xdist/scheduler/each.py b/src/xdist/scheduler/each.py index 91084bf..dab0ff8 100644 --- a/src/xdist/scheduler/each.py +++ b/src/xdist/scheduler/each.py @@ -101,12 +101,7 @@ class EachScheduling: self.node2pending[node].remove(item_index) def mark_test_pending(self, item): - self.pending.insert( - 0, - self.collection.index(item), - ) - for node in self.node2pending: - self.check_schedule(node) + raise NotImplementedError() def remove_node(self, node): # KeyError if we didn't get an add_node() yet