Skip to content

Commit

Permalink
Gitbot Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fpetrini15 committed Mar 27, 2024
1 parent ea16c37 commit 86b0362
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qa/L0_shared_memory/shared_memory_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ def test_invalid_create_shm(self, protocol):
shm.destroy_shared_memory_region(shm_op0_handle)
except Exception as ex:
if self._test_windows:
self.assertTrue(str(ex) == "unable to create file mapping")
self.assertEqual(str(ex), "unable to create file mapping")
else:
self.assertTrue(str(ex) == "unable to initialize the size")
self.assertEqual(str(ex), "unable to initialize the size")
self._test_passed = True

@parameterized.expand([("grpc"), ("http")])
Expand All @@ -271,7 +271,7 @@ def test_invalid_registration(self, protocol):
)
except Exception as ex:
print(str(ex))
self.assertTrue("Unable to open shared memory region" in str(ex))
self.assertIn("Unable to open shared memory region", str(ex))
self._test_passed = True

@parameterized.expand([("grpc"), ("http")])
Expand Down Expand Up @@ -366,8 +366,8 @@ def test_reregister_after_register(self, protocol):
"dummy_data", "/dummy_data", 8
)
except Exception as ex:
self.assertTrue(
"shared memory region 'dummy_data' already in manager" in str(ex)
self.assertIn(
"shared memory region 'dummy_data' already in manager", str(ex)
)
shm_status = self._triton_client.get_system_shared_memory_status()
if self._protocol == "http":
Expand Down

0 comments on commit 86b0362

Please sign in to comment.