Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 31, 2023
1 parent a06807d commit b6fc067
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions psutil/tests/test_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,15 @@ def test_getmntent_emulate_realpath_fail(self):
finally:
psutil.PROCFS_PATH = "/proc"

def test_getmntent_mountinfo_parity(self):
# exclude opts, because they're slightly different for some reason
self.assertEqual(
sorted([x[:-1] for x in
psutil._psplatform._disk_partitions_getmntent()]),
sorted([x[:-1] for x in
psutil._psplatform._disk_partitions_mountinfo()])
)


@unittest.skipIf(not LINUX, "LINUX only")
class TestSystemDiskIoCounters(PsutilTestCase):
Expand Down

0 comments on commit b6fc067

Please sign in to comment.