Skip to content

Commit

Permalink
use staticmethod instead of classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciovasquezbernal committed Feb 25, 2020
1 parent 80d73ab commit e9580d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opentelemetry-sdk/tests/metrics/export/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ def test_ungrouped_batcher_process_not_stateful(self):


class TestCounterAggregator(unittest.TestCase):
@classmethod
def call_update(cls, counter):
@staticmethod
def call_update(counter):
update_total = 0
for _ in range(0, 100000):
val = random.getrandbits(32)
Expand Down Expand Up @@ -284,8 +284,8 @@ def test_concurrent_update_and_checkpoint(self):


class TestMinMaxSumCountAggregator(unittest.TestCase):
@classmethod
def call_update(cls, mmsc):
@staticmethod
def call_update(mmsc):
min_ = float("inf")
max_ = float("-inf")
sum_ = 0
Expand Down

0 comments on commit e9580d8

Please sign in to comment.