Skip to content

Commit

Permalink
TUR-21619: Patch pytest error (#3)
Browse files Browse the repository at this point in the history
* fix pytest error

* clearer if
  • Loading branch information
ciaconet authored Sep 17, 2024
1 parent 51a36a1 commit 1935a2b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/xdist/dsession.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,17 @@ def worker_collectionfinish(
self.terminal.write_line("")
if self.config.option.verbose > 0:
self.report_line(f"[-] [dse] scheduling tests via {self.sched.__class__.__name__}")
if isinstance(self.sched, CustomGroup) and self.ready_to_run_tests and self.are_all_active_nodes_collected():
# we're coming back here after finishing a batch of tests - so start the next batch
self.reschedule()
self.reset_nodes_if_needed()
if isinstance(self.sched, CustomGroup):
if self.ready_to_run_tests and self.are_all_active_nodes_collected():
# we're coming back here after finishing a batch of tests - so start the next batch
self.reschedule()
self.reset_nodes_if_needed()
else:
self.ready_to_run_tests = True
self.sched.schedule()
self.reset_nodes_if_needed()
else:
self.ready_to_run_tests = True
self.sched.schedule()
self.reset_nodes_if_needed()

def worker_logstart(
self,
Expand Down

0 comments on commit 1935a2b

Please sign in to comment.