From 6de9a75f01cdfe1126a9d654bdc2bc39d02e1e18 Mon Sep 17 00:00:00 2001 From: Jonas Maison Date: Thu, 26 Mar 2026 09:22:13 +0100 Subject: [PATCH 1/2] fix: logging interpolation bug in plugin.py --- src/pytest_harvest/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytest_harvest/plugin.py b/src/pytest_harvest/plugin.py index e08793e..300d296 100644 --- a/src/pytest_harvest/plugin.py +++ b/src/pytest_harvest/plugin.py @@ -403,7 +403,7 @@ def pytest_harvest_xdist_worker_dump(self, worker_id, session_items, fixture_sto try: pickle.dump((session_items, fixture_store), f) except Exception as e: - warning("Error while pickling worker %s's harvested results: [%s] %s", (worker_id, e.__class__, e)) + warning("Error while pickling worker %s's harvested results: [%s] %s", worker_id, e.__class__, e) return True @pytest.hookimpl(trylast=True) From 6e29d8bf8079e176e59aeb4b60736af00feab9a1 Mon Sep 17 00:00:00 2001 From: Jonas Maison Date: Thu, 30 Apr 2026 12:50:04 +0200 Subject: [PATCH 2/2] Update changelog for version 1.11.1: fixed xdist pickling error logging --- docs/changelog.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 4bc9680..6d7a8c9 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,6 +1,11 @@ # Changelog -### 1.11.0 - dropped support for python < 3.9 and fixed - pytest 8.4.0 (in progress) +### 1.11.1 - fixed xdist pickling error logging (in progress) + +- Fixed a `TypeError` raised when an error occurs while pickling the xdist worker results. + PR [#85](https://github.com/smarie/python-pytest-harvest/pull/85) by [@Jonas1312](https://github.com/Jonas1312). + +### 1.11.0 - dropped support for python < 3.9 and fixed - pytest 8.4.0 - Dropped support for python <3.9 and added a proper github pages workflow (explicit). Removed `six` from dependencies. Fixed [#79](https://github.com/smarie/python-pytest-harvest/issues/79)