Skip to content

Commit 6546bc4

Browse files
committed
Fix container libEGL collection error and suppress Sonar slice false-positive
- test_script_builder_param_preservation: importorskip PySide6.QtWidgets (not the bare PySide6 package) so it skips when Qt runtime libs like libEGL.so.1 are absent — the shipped Docker image lacks them, so importing QtWidgets aborted collection of the whole in-image suite. - test_platform_backend_binding: NOSONAR the slice assertion Sonar keeps flagging as S6466; a slice cannot raise IndexError, so it is a false positive.
1 parent f3393a2 commit 6546bc4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit_test/headless/test_platform_backend_binding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_scroll_clamps_and_fills_a_partial_coordinate(monkeypatch):
161161

162162
auto_control_mouse.mouse_scroll(5, x=99999)
163163

164-
assert events[:1] == [("move", 1919, 7)]
164+
assert events[:1] == [("move", 1919, 7)] # NOSONAR python:S6466 # reason: slice, not index — cannot raise IndexError
165165

166166

167167
def test_missing_coords_still_fall_back_to_the_cursor(monkeypatch):

test/unit_test/headless/test_script_builder_param_preservation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77
import pytest
88

9-
pytest.importorskip("PySide6")
9+
pytest.importorskip("PySide6.QtWidgets") # skips if Qt libs (e.g. libEGL) absent
1010

1111
from PySide6.QtWidgets import QApplication # noqa: E402
1212

0 commit comments

Comments
 (0)