diff --git a/CHANGES.rst b/CHANGES.rst index 0d1b923..b86edc9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 12.1 (unreleased) ----------------- -- Nothing changed yet. +- Fix crashitem names mismatch between client and server. + (`#172 `_) 12.0 (2023-07-05) diff --git a/pytest_rerunfailures.py b/pytest_rerunfailures.py index 0d612e2..df42b38 100644 --- a/pytest_rerunfailures.py +++ b/pytest_rerunfailures.py @@ -541,10 +541,9 @@ def pytest_runtest_protocol(item, nextitem): check_options(item.session.config) delay = get_reruns_delay(item) parallel = not is_master(item.config) - item_location = (item.location[0] + "::" + item.location[2]).replace("\\", "/") db = item.session.config.failures_db - item.execution_count = db.get_test_failures(item_location) - db.set_test_reruns(item_location, reruns) + item.execution_count = db.get_test_failures(item.nodeid) + db.set_test_reruns(item.nodeid, reruns) if item.execution_count > reruns: return True