From 61854bcd1459e135782e14220cb06eb2125557fd Mon Sep 17 00:00:00 2001 From: "Nicholas H.Tollervey" Date: Wed, 19 Mar 2025 15:39:21 +0000 Subject: [PATCH] Fix MicroPython media tests, if no permission is given for a video device. --- core/tests/python/tests/test_media.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/tests/python/tests/test_media.py b/core/tests/python/tests/test_media.py index 7c30d65b..713330e5 100644 --- a/core/tests/python/tests/test_media.py +++ b/core/tests/python/tests/test_media.py @@ -2,6 +2,8 @@ Tests for the PyScript media module. """ +import upytest + from pyscript import media @@ -33,6 +35,7 @@ async def test_device_enumeration(): ), "Dictionary access should match property access" +@upytest.skip("Waiting on a bug-fix in MicroPython, for this test to work.", skip_when=upytest.is_micropython) async def test_video_stream_acquisition(): """Test video stream.""" try: @@ -55,6 +58,7 @@ async def test_video_stream_acquisition(): ), f"Stream acquisition attempted but may require permissions: {str(e)}" +@upytest.skip("Waiting on a bug-fix in MicroPython, for this test to work.", skip_when=upytest.is_micropython) async def test_custom_video_constraints(): """Test loading video with custom constraints.""" try: