[pygobject] tests: handle the cursor type changing to pixmap as happens on macOS
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: handle the cursor type changing to pixmap as happens on macOS
- Date: Tue, 27 Nov 2018 08:06:51 +0000 (UTC)
commit 4fcc712748c61118483738c9f68142a73894c35e
Author: Christoph Reiter <reiter christoph gmail com>
Date: Tue Nov 27 09:05:19 2018 +0100
tests: handle the cursor type changing to pixmap as happens on macOS
tests/test_overrides_gdk.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/test_overrides_gdk.py b/tests/test_overrides_gdk.py
index e497cf97..88fc4654 100644
--- a/tests/test_overrides_gdk.py
+++ b/tests/test_overrides_gdk.py
@@ -222,7 +222,9 @@ class TestGdk(unittest.TestCase):
with capture_glib_deprecation_warnings() as warn:
c = Gdk.Cursor(display, Gdk.CursorType.WATCH)
assert len(warn) == 1
- assert c.props.cursor_type == Gdk.CursorType.WATCH
+ # on macOS the type is switched to PIXMAP behind the scenes
+ assert c.props.cursor_type in (
+ Gdk.CursorType.WATCH, Gdk.CursorType.CURSOR_IS_PIXMAP)
assert c.props.display == display
@unittest.skipUnless(GDK4, "only gdk4")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]