Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jan 1, 2024
1 parent 450bc00 commit 0ea8e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psutil/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,10 +1307,10 @@ def print_section(section, info):

if WINDOWS:
print_section(
"tasklist", subprocess.check_output(["tasklist"], text=True))
"tasklist", subprocess.check_output(["tasklist"]).decode())
elif which("ps"):
print_section(
"ps aux", subprocess.check_output(["ps", "aux"], text=True))
"ps aux", subprocess.check_output(["ps", "aux"]).decode())

print("=" * 70, file=sys.stderr) # NOQA
sys.stdout.flush()
Expand Down

0 comments on commit 0ea8e6b

Please sign in to comment.