Skip to content

Commit

Permalink
chore: fix W0105 in t/u/s/h/test_netlink.py (#5409)
Browse files Browse the repository at this point in the history
  • Loading branch information
aciba90 committed Jun 25, 2024
1 parent 63f7237 commit ffe8236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittests/sources/helpers/test_netlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TestCreateBoundNetlinkSocket(CiTestCase):
def test_socket_error_on_create(self, m_socket):
"""create_bound_netlink_socket catches socket creation exception"""

"""NetlinkCreateSocketError is raised when socket creation errors."""
# NetlinkCreateSocketError is raised when socket creation errors.
m_socket.side_effect = socket.error("Fake socket failure")
with self.assertRaises(NetlinkCreateSocketError) as ctx_mgr:
create_bound_netlink_socket()
Expand Down

0 comments on commit ffe8236

Please sign in to comment.