Skip to content

Commit

Permalink
try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 31, 2023
1 parent c2aa0a8 commit e5d8273
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions psutil/_pslinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,10 +1280,11 @@ def _disk_partitions_mountinfo():
_sep,
fstype,
device,
opts2
) = fields[:11]
) = fields[:10]
opts2 = fields[10] if len(fields) >= 11 else ""

opts1 = opts1.split(",")
opts2 = opts2.split(",")
opts2 = opts2.split(",") if opts2 else []
opts = dict.fromkeys(opts1 + opts2)
if "ro" in opts and "rw" in opts:
del opts["rw"]
Expand Down

0 comments on commit e5d8273

Please sign in to comment.