Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 17, 2023
1 parent 5476b29 commit 2889826
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion psutil/_pswindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 2 additions & 3 deletions psutil/tests/test_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2889826

Please sign in to comment.