From e9580d82a4d110518f358b8ca098bf912fe328f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauricio=20V=C3=A1squez?= Date: Mon, 24 Feb 2020 21:09:13 -0500 Subject: [PATCH] use staticmethod instead of classmethod --- opentelemetry-sdk/tests/metrics/export/test_export.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opentelemetry-sdk/tests/metrics/export/test_export.py b/opentelemetry-sdk/tests/metrics/export/test_export.py index b7b34995d87..51d7aaaf4fd 100644 --- a/opentelemetry-sdk/tests/metrics/export/test_export.py +++ b/opentelemetry-sdk/tests/metrics/export/test_export.py @@ -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) @@ -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