Skip to content

Commit

Permalink
filter connections 3
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jan 6, 2024
1 parent 6b5d45f commit e40ba85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion psutil/tests/test_testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ def test_unix_socketpair(self):
assert os.path.exists(name)
assert stat.S_ISSOCK(os.stat(name).st_mode)
self.assertEqual(p.num_fds() - num_fds, 2)
self.assertEqual(len(p.connections(kind='unix')), 2)
self.assertEqual(
len(filter_proc_connections(p.connections(kind='unix'))), 2
)
self.assertEqual(server.getsockname(), name)
self.assertEqual(client.getpeername(), name)
finally:
Expand Down

0 comments on commit e40ba85

Please sign in to comment.