Skip to content

Commit

Permalink
Replace assertTrue with assertIsInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek378521 committed Jul 5, 2024
1 parent db349c8 commit 93811f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions opentelemetry-sdk/tests/metrics/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,8 @@ def test_get_meter_comparison_with_attributes(self):
self.assertTrue(
meter3._instrumentation_scope > meter4._instrumentation_scope
)
self.assertTrue(
isinstance(
meter4._instrumentation_scope.attributes, BoundedAttributes
),
self.assertIsInstance(
meter4._instrumentation_scope.attributes, BoundedAttributes
)

def test_shutdown(self):
Expand Down

0 comments on commit 93811f7

Please sign in to comment.