Skip to content

Commit

Permalink
assert raises
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Oct 18, 2024
1 parent eb185da commit af839f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def test_sanity_secure(self):
self.assertIsNotNone(s3_client)

def test_sanity_network_interface_names(self):
s3_client = s3_client_new(True, self.region, network_interface_names=("eth0", "invalid-network-interface"))
self.assertIsNone(s3_client)
with self.assertRaises(Exception):
s3_client_new(True, self.region, network_interface_names=("eth0", "invalid-network-interface"))

def test_wait_shutdown(self):
s3_client = s3_client_new(False, self.region)
Expand Down

0 comments on commit af839f0

Please sign in to comment.