Skip to content

Commit

Permalink
Improve docstrings (#229)
Browse files Browse the repository at this point in the history
Suggested-by: pydocstyle
  • Loading branch information
pabs3 authored Aug 18, 2023
1 parent c6ff082 commit abbce9e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pytest_rerunfailures.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,11 @@ def pytest_configure(config):

class XDistHooks:
def pytest_configure_node(self, node):
"""xdist hook"""
"""Configure xdist hook for node sock_port."""
node.workerinput["sock_port"] = node.config.failures_db.sock_port

def pytest_handlecrashitem(self, crashitem, report, sched):
"""
Return the crashitem from pending and collection.
"""
"""Return the crashitem from pending and collection."""
db = sched.config.failures_db
reruns = db.get_test_reruns(crashitem)
if db.get_test_failures(crashitem) < reruns:
Expand Down

0 comments on commit abbce9e

Please sign in to comment.