From 979d79381e9d9897788e3326bfdd578ffbd4fa65 Mon Sep 17 00:00:00 2001 From: Rahul Kumar Date: Sat, 14 Oct 2023 14:51:31 +0530 Subject: [PATCH] Added test cases to skip gc count for pypy --- .../tests/test_system_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-system-metrics/tests/test_system_metrics.py b/instrumentation/opentelemetry-instrumentation-system-metrics/tests/test_system_metrics.py index 3520170635..fa297ac7ea 100644 --- a/instrumentation/opentelemetry-instrumentation-system-metrics/tests/test_system_metrics.py +++ b/instrumentation/opentelemetry-instrumentation-system-metrics/tests/test_system_metrics.py @@ -791,7 +791,7 @@ def test_runtime_cpu_time(self, mock_process_cpu_times): ) @mock.patch("gc.get_count") - @skipIf(python_implementation().lower() == "pypy") + @skipIf(python_implementation().lower() == "pypy", "not supported for pypy") def test_runtime_get_count(self, mock_gc_get_count): mock_gc_get_count.configure_mock(**{"return_value": (1, 2, 3)})