Skip to content

Commit abbce9e

Browse files
authored
Improve docstrings (#229)
Suggested-by: pydocstyle
1 parent c6ff082 commit abbce9e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pytest_rerunfailures.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,11 @@ def pytest_configure(config):
399399

400400
class XDistHooks:
401401
def pytest_configure_node(self, node):
402-
"""xdist hook"""
402+
"""Configure xdist hook for node sock_port."""
403403
node.workerinput["sock_port"] = node.config.failures_db.sock_port
404404

405405
def pytest_handlecrashitem(self, crashitem, report, sched):
406-
"""
407-
Return the crashitem from pending and collection.
408-
"""
406+
"""Return the crashitem from pending and collection."""
409407
db = sched.config.failures_db
410408
reruns = db.get_test_reruns(crashitem)
411409
if db.get_test_failures(crashitem) < reruns:

0 commit comments

Comments
 (0)