Skip to content

Commit c33df6d

Browse files
committed
GTK4: Skip ActivityIndicator tests
1 parent a77a58e commit c33df6d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

gtk/src/toga_gtk/widgets/activityindicator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ def create(self):
77
self.native = Gtk.Spinner()
88

99
def is_running(self):
10-
return self.native.get_property("active")
10+
if GTK_VERSION < (4, 0, 0): # pragma: no-cover-if-gtk4
11+
return self.native.get_property("active")
12+
else: # pragma: no-cover-if-gtk3
13+
pass
1114

1215
def start(self):
1316
self.native.start()
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
from toga_gtk.libs import Gtk
1+
import pytest
2+
3+
from toga_gtk.libs import GTK_VERSION, Gtk
24

35
from .base import SimpleProbe
46

57

68
class ActivityIndicatorProbe(SimpleProbe):
9+
if GTK_VERSION >= (4, 0, 0):
10+
pytest.skip("ActivityIndicator is not yet supported with GTK4")
711
native_class = Gtk.Spinner

0 commit comments

Comments
 (0)