From a6717edce11ffc128c3f058889799c5ce2d3bf96 Mon Sep 17 00:00:00 2001 From: yecheah Date: Sun, 2 Mar 2025 00:03:00 +0800 Subject: [PATCH 1/2] skip port logic family test on linux --- .../component/system/test_physical_channel_properties.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/component/system/test_physical_channel_properties.py b/tests/component/system/test_physical_channel_properties.py index 267efd3c..362e0af6 100644 --- a/tests/component/system/test_physical_channel_properties.py +++ b/tests/component/system/test_physical_channel_properties.py @@ -82,13 +82,17 @@ def test___physical_channel_with_teds___get_uint32_property___returns_configured ) as phys_chan: assert phys_chan.teds_mfg_id == 17 - +@pytest.mark.skipif( + not sys.platform.startswith("win"), reason="mioDAQ support Windows-only" +) def test___physical_channel___get_int32_property___returns_value(): phys_chans = PhysicalChannel("mioDAQ/port0") assert phys_chans.dig_port_logic_family in LogicFamily - +@pytest.mark.skipif( + not sys.platform.startswith("win"), reason="mioDAQ support Windows-only" +) @pytest.mark.library_only( reason="AB#2375679: gRPC interpreter doesn't support setting physical channel property." ) From 06c676f2eb8c9197e202427ac338a9661ade629b Mon Sep 17 00:00:00 2001 From: yecheah Date: Sun, 2 Mar 2025 00:06:06 +0800 Subject: [PATCH 2/2] Fix format --- .../system/test_physical_channel_properties.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/component/system/test_physical_channel_properties.py b/tests/component/system/test_physical_channel_properties.py index 362e0af6..620d2841 100644 --- a/tests/component/system/test_physical_channel_properties.py +++ b/tests/component/system/test_physical_channel_properties.py @@ -1,3 +1,5 @@ +import sys + import numpy import pytest @@ -82,17 +84,15 @@ def test___physical_channel_with_teds___get_uint32_property___returns_configured ) as phys_chan: assert phys_chan.teds_mfg_id == 17 -@pytest.mark.skipif( - not sys.platform.startswith("win"), reason="mioDAQ support Windows-only" -) + +@pytest.mark.skipif(not sys.platform.startswith("win"), reason="mioDAQ support Windows-only") def test___physical_channel___get_int32_property___returns_value(): phys_chans = PhysicalChannel("mioDAQ/port0") assert phys_chans.dig_port_logic_family in LogicFamily -@pytest.mark.skipif( - not sys.platform.startswith("win"), reason="mioDAQ support Windows-only" -) + +@pytest.mark.skipif(not sys.platform.startswith("win"), reason="mioDAQ support Windows-only") @pytest.mark.library_only( reason="AB#2375679: gRPC interpreter doesn't support setting physical channel property." )