pygobject3/fix-test-failure-of-test_atoms-and-test_overrides_gtk.patch
2021-05-22 17:33:34 +08:00

40 lines
1.2 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 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_atoms.py b/tests/test_atoms.py
index 26d5c43..c2d41cb 100644
--- a/tests/test_atoms.py
+++ b/tests/test_atoms.py
@@ -24,7 +24,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 88b3f88..9bbf35b 100644
--- a/tests/test_overrides_gtk.py
+++ b/tests/test_overrides_gtk.py
@@ -40,7 +40,7 @@ def gtkver():
Gtk.get_micro_version())
-GTK4 = (Gtk._version == "4.0")
+GTK4 = (Gtk_version == "4.0")
@contextlib.contextmanager
--
1.8.3.1