diff --git a/tests/test_usb.py b/tests/test_usb.py index 1619cc9be..2116cc253 100644 --- a/tests/test_usb.py +++ b/tests/test_usb.py @@ -204,6 +204,17 @@ def cb_device_events(session_handle, events): ) @pytest.mark.parametrize("usb_queries", ["vnd:04a9", None]) + @pytest.mark.skipif( + ("GITHUB_ACTIONS" in os.environ and os.environ["GITHUB_ACTIONS"] == "true") + or ( + "container" in os.environ + and ( + os.environ["container"] == "docker" + or os.environ["container"] == "podman" + ) + ), + reason="Test fail in containers", + ) def test_device_remove(self, portal_mock, app_id, usb_queries): device_events_signal_count = 0 devices_received = 0