Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jan 2, 2024
1 parent b26caf3 commit 279555a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psutil/tests/test_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,8 @@ def parse_mount(out):
psutil_mounts = [x[:4] for x in psutil.disk_partitions(all=True)]
self.assertEqual(len(sys_mounts), len(psutil_mounts))
for idx in range(len(sys_mounts)):
self.assertEqual(sys_mounts[idx], psutil_mounts[idx])
with self.subTest(line=sys_mounts[idx]):
self.assertEqual(sys_mounts[idx], psutil_mounts[idx])

def test_zfs_fs(self):
# Test that ZFS partitions are returned.
Expand Down

0 comments on commit 279555a

Please sign in to comment.