diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py index fd850e45a..90de0e682 100755 --- a/psutil/tests/test_linux.py +++ b/psutil/tests/test_linux.py @@ -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):