From 5476b296aad53487f06e005b69c12b793ff32a04 Mon Sep 17 00:00:00 2001
From: Giampaolo Rodola <g.rodola@gmail.com>
Date: Sun, 17 Dec 2023 23:45:18 +0100
Subject: [PATCH] progress

---
 psutil/tests/test_contracts.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py
index 9d25b85f7..936a22a48 100755
--- a/psutil/tests/test_contracts.py
+++ b/psutil/tests/test_contracts.py
@@ -441,9 +441,10 @@ def test_all(self):
                 try:
                     meth(value, info)
                 except Exception:
+                    ff = str(psutil.Process(info['pid']).as_dict())
                     s = '\n' + '=' * 70 + '\n'
-                    s += "FAIL: name=test_%s, pid=%s, ret=%s\n" % (
-                        name, info['pid'], repr(value))
+                    s += "FAIL: name=test_%s, pid=%s, ret=%s as_dict=%s\n" % (
+                        name, info['pid'], repr(value), ff)
                     s += '-' * 70
                     s += "\n%s" % traceback.format_exc()
                     s = "\n".join((" " * 4) + i for i in s.splitlines()) + "\n"