Skip to content

Commit d4fb57e

Browse files
committed
[Bug] fixed headless linux GTK test problem in testing
1 parent a76fb4a commit d4fb57e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tests/test_clipboard_os.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import time
2-
from pytron.dependencies import pytron_os
2+
import pytest
3+
4+
# pytron_os is a native binary (.so/.pyd) that requires platform libs like GTK on Linux.
5+
# Skip the whole module if it can't be loaded (e.g. headless CI with no GTK).
6+
pytron_os = pytest.importorskip(
7+
"pytron.dependencies.pytron_os",
8+
reason="pytron_os native binary unavailable (missing system libs or not built)",
9+
)
310

411

512
def test_clipboard_integrity():

0 commit comments

Comments
 (0)