Skip to content

Commit

Permalink
skip histogram test on windows 3.12 with pyside/pygfx
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jan 21, 2025
1 parent 33a8325 commit 0e6c69d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import os
from typing import TYPE_CHECKING, Any, Callable, cast, no_type_check
from unittest.mock import MagicMock, Mock, patch

Expand All @@ -20,6 +21,11 @@
if TYPE_CHECKING:
from ndv.controllers._channel_controller import ChannelController

try:
from qtpy import QT_API
except ImportError:
QT_API = None


def _get_mock_canvas() -> ArrayCanvas:
mock = MagicMock(spec=ArrayCanvas)
Expand Down Expand Up @@ -213,6 +219,9 @@ def test_array_viewer_histogram() -> None:
if _app.gui_frontend() != _app.GuiFrontend.QT:
pytest.skip("histograms only implemented in Qt.")
return
if os.name == "nt" and QT_API == "PySide6" and _app.canvas_backend() == "pygfx":
pytest.skip("pygfx not supported on Windows with PySide6.")
return

viewer = ArrayViewer()
viewer.show()
Expand Down

0 comments on commit 0e6c69d

Please sign in to comment.