1717
1818from opentelemetry .exporter .otlp .proto .common ._internal .metrics_encoder import (
1919 EncodingException ,
20- truncate_trailing_zeros ,
2120 create_exponential_histogram_buckets ,
21+ truncate_trailing_zeros ,
2222)
2323from opentelemetry .exporter .otlp .proto .common .metrics_encoder import (
2424 encode_metrics ,
@@ -864,8 +864,10 @@ def test_truncate_trailing_zeros(self):
864864 self .assertEqual ([1 , - 1 ], truncate_trailing_zeros ([1 , - 1 , 0 , 0 ]))
865865
866866 def test_create_histogram_buckets (self ):
867- self .assertIsNone ([], create_exponential_histogram_buckets (0 , [0 , 0 , 0 , 0 ]))
868- self .assertIsNotNone ([], create_exponential_histogram_buckets (0 , [1 ]))
867+ self .assertIsNone (
868+ create_exponential_histogram_buckets (0 , [0 , 0 , 0 , 0 ])
869+ )
870+ self .assertIsNotNone (create_exponential_histogram_buckets (0 , [1 ]))
869871
870872 def test_encode_exponential_histogram (self ):
871873 exponential_histogram = Metric (
@@ -883,7 +885,9 @@ def test_encode_exponential_histogram(self):
883885 scale = 4 ,
884886 zero_count = 5 ,
885887 positive = Buckets (offset = 6 , bucket_counts = [7 , 8 , 0 ]),
886- negative = Buckets (offset = 9 , bucket_counts = [10 , 11 , 0 , 0 ]),
888+ negative = Buckets (
889+ offset = 9 , bucket_counts = [10 , 11 , 0 , 0 ]
890+ ),
887891 flags = 12 ,
888892 min = 13.0 ,
889893 max = 14.0 ,
0 commit comments