48 lines
1.4 KiB
Diff
48 lines
1.4 KiB
Diff
From 925182370146907c51712d77bc026177f0644425 Mon Sep 17 00:00:00 2001
|
|
From: panxiaohe <panxiaohe@huawei.com>
|
|
Date: Sat, 22 May 2021 15:21:50 +0800
|
|
Subject: [PATCH] fix test failure of test_atoms and test_overrides_gtk
|
|
---
|
|
tests/test_atoms.py | 2 +-
|
|
tests/test_overrides_gtk.py | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/tests/test_atoms.py b/tests/test_atoms.py
|
|
index a74db38..a896b3a 100644
|
|
--- a/tests/test_atoms.py
|
|
+++ b/tests/test_atoms.py
|
|
@@ -22,7 +22,7 @@ def is_X11():
|
|
|
|
|
|
@unittest.skipUnless(Gdk, 'Gdk not available')
|
|
-@unittest.skipIf(Gdk._version == "4.0", 'Gdk4 doesn\'t have GdkAtom')
|
|
+#@unittest.skipIf(Gdk._version == "4.0", 'Gdk4 doesn\'t have GdkAtom')
|
|
class TestGdkAtom(unittest.TestCase):
|
|
def test_create(self):
|
|
atom = Gdk.Atom.intern('my_string', False)
|
|
diff --git a/tests/test_overrides_gtk.py b/tests/test_overrides_gtk.py
|
|
index ff3acba..cded5fe 100644
|
|
--- a/tests/test_overrides_gtk.py
|
|
+++ b/tests/test_overrides_gtk.py
|
|
@@ -36,7 +36,7 @@ def gtkver():
|
|
Gtk.get_micro_version())
|
|
|
|
|
|
-GTK4 = (Gtk._version == "4.0")
|
|
+GTK4 = (Gtk_version == "4.0")
|
|
|
|
|
|
@contextlib.contextmanager
|
|
@@ -2794,7 +2794,7 @@ class TestContainer(unittest.TestCase):
|
|
self.assertEqual(fill, False)
|
|
self.assertEqual(padding, 21)
|
|
|
|
-
|
|
+@unittest.skipUnless(Gtk, 'Gtk not available')
|
|
def test_button_focus_on_click():
|
|
b = Gtk.Button()
|
|
b.set_focus_on_click(True)
|
|
--
|
|
1.8.3.1
|
|
|