!10 enable check test suite
From: @panxh_purple Reviewed-by: @xiezhipeng1 Signed-off-by: @xiezhipeng1
This commit is contained in:
commit
ffdf1db57b
47
fix-test-failure-of-test_atoms-and-test_overrides_gtk.patch
Normal file
47
fix-test-failure-of-test_atoms-and-test_overrides_gtk.patch
Normal file
@ -0,0 +1,47 @@
|
||||
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
|
||||
|
||||
@ -1,13 +1,15 @@
|
||||
Name: pygobject3
|
||||
Version: 3.38.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Provides bindings for GObject based libraries
|
||||
License: LGPLv2+ and MIT
|
||||
URL: https://wiki.gnome.org/Projects/PyGObject
|
||||
Source0: https://download.gnome.org/sources/pygobject/3.38/pygobject-%{version}.tar.xz
|
||||
|
||||
Patch0: fix-test-failure-of-test_atoms-and-test_overrides_gtk.patch
|
||||
|
||||
BuildRequires: glib2-devel >= 2.48.0 gobject-introspection-devel >= 1.46.0
|
||||
BuildRequires: meson cairo-gobject-devel
|
||||
BuildRequires: meson cairo-gobject-devel python3-pytest
|
||||
BuildRequires: python3-devel >= 3.4 python3-cairo-devel >= 1.11.1
|
||||
|
||||
%description
|
||||
@ -53,6 +55,9 @@ This package contains files required to embed PyGObject
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
@ -80,6 +85,9 @@ This package contains files required to embed PyGObject
|
||||
%{_libdir}/pkgconfig/pygobject-3.0.pc
|
||||
|
||||
%changelog
|
||||
* Sat Jun 19 2021 panxiaohe <panxiaohe@huawei.com> - 3.38.0-2
|
||||
- enable check test suite
|
||||
|
||||
* Tue Jan 26 2021 yixiangzhike <zhangxingliang3@huawei.com> - 3.38.0-1
|
||||
- update to 3.38.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user