From fb075ebd7a4265c8e44e9661be9301f4984cb3e2 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Sun, 19 Sep 2021 11:08:40 +0800 Subject: [PATCH] Improve docstrings Suggested-by: pydocstyle --- pytest_rerunfailures.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pytest_rerunfailures.py b/pytest_rerunfailures.py index 7e90208..52333f8 100644 --- a/pytest_rerunfailures.py +++ b/pytest_rerunfailures.py @@ -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: