From 288982678396e1fa62999ea98aed9845b94f9618 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Mon, 18 Dec 2023 00:24:53 +0100 Subject: [PATCH] progress --- psutil/_pswindows.py | 1 - psutil/tests/test_contracts.py | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/psutil/_pswindows.py b/psutil/_pswindows.py index 01a9666fab..c536b24e3f 100644 --- a/psutil/_pswindows.py +++ b/psutil/_pswindows.py @@ -755,7 +755,6 @@ def _proc_info(self): """ ret = cext.proc_info(self.pid) assert len(ret) == len(pinfo_map) - debug("\n, pid = %s, proc_info = %s" % (self.pid, str(ret))) return ret def name(self): diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index 936a22a48a..dc519005fb 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -441,10 +441,9 @@ 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 as_dict=%s\n" % ( - name, info['pid'], repr(value), ff) + s += "FAIL: name=test_%s, pid=%s, ret=%s\ninfo=%s\n" % ( + name, info['pid'], repr(value), info) s += '-' * 70 s += "\n%s" % traceback.format_exc() s = "\n".join((" " * 4) + i for i in s.splitlines()) + "\n"