diff --git a/opentelemetry-sdk/tests/metrics/test_metrics.py b/opentelemetry-sdk/tests/metrics/test_metrics.py index 01c501b205..56aca4e7f4 100644 --- a/opentelemetry-sdk/tests/metrics/test_metrics.py +++ b/opentelemetry-sdk/tests/metrics/test_metrics.py @@ -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):