Skip to content

Commit f21f580

Browse files
committed
Skip open file descriptor test on windows
1 parent cd03f86 commit f21f580

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

instrumentation/opentelemetry-instrumentation-system-metrics/tests/test_system_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ def test_runtime_cpu_percent(self, mock_process_cpu_percent):
854854
f"process.runtime.{self.implementation}.cpu.utilization", expected
855855
)
856856

857+
@skipIf(sys.platform == "win32", "No file descriptors on Windows")
857858
@mock.patch("psutil.Process.num_fds")
858859
def test_open_file_descriptor_count(self, mock_process_num_fds):
859860
mock_process_num_fds.configure_mock(**{"return_value": 3})

0 commit comments

Comments
 (0)