Skip to content

Commit

Permalink
Only test pyside2 with linux and py310
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed May 24, 2024
1 parent 58ba909 commit 31dd8e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion napari_plugin_manager/_tests/test_qt_plugin_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import importlib.metadata
import platform
import sys
from typing import Generator, Optional, Tuple
from unittest.mock import patch
Expand All @@ -13,7 +14,7 @@
from napari_plugin_manager import qt_plugin_dialog
from napari_plugin_manager.qt_package_installer import InstallerActions

if qtpy.API_NAME == 'PySide2' and sys.version_info[:2] == (3, 11):
if qtpy.API_NAME == 'PySide2' and sys.version_info[:2] != (3, 10) and platform.system() != "Linux":
pytest.skip(
"Known PySide2 x Python 3.11 incompatibility: "
"TypeError: 'PySide2.QtCore.Qt.Alignment' object cannot be interpreted as an integer",
Expand Down

0 comments on commit 31dd8e3

Please sign in to comment.