Skip to content

Commit bf12348

Browse files
committed
Skipping unnecessary tests on non-Windows platforms
1 parent 7db3580 commit bf12348

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plotpy/tests/unit/test_manipulate_selection.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import os
34
from typing import TYPE_CHECKING, Callable, TypeVar
45

56
import numpy as np
@@ -270,6 +271,7 @@ def test_select_all_items():
270271
exec_dialog(win)
271272

272273

274+
@pytest.mark.skipif(os.name != "nt", reason="Only tested on Windows.")
273275
def test_rotate_with_mouse():
274276
"""Test rotating an image item with the mouse."""
275277
with qt_app_context(exec_loop=False) as qapp:
@@ -325,6 +327,7 @@ def test_rectangular_selection():
325327
exec_dialog(win)
326328

327329

330+
@pytest.mark.skipif(os.name != "nt", reason="Only tested on Windows.")
328331
@pytest.mark.parametrize(
329332
"mouse_path, rotation",
330333
[

0 commit comments

Comments
 (0)