Imported Upstream version 3.30.0 upstream/3.30.0
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 30 Oct 2018 01:30:33 +0000 (10:30 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 30 Oct 2018 01:30:33 +0000 (10:30 +0900)
NEWS
PKG-INFO
PyGObject.egg-info/PKG-INFO
gi/overrides/GObject.py
meson.build
setup.py
tests/__init__.py
tests/conftest.py
tests/test_atoms.py
tests/test_gobject.py

diff --git a/NEWS b/NEWS
index e8d7b5a..2b62f00 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+3.30.0 - 2018-08-31
+-------------------
+
+* Various test suite fixes to get things to pass with Ubuntu 18.10.
+
+
 3.29.3 - 2018-08-16
 -------------------
 
index c15d2b1..6f76658 100644 (file)
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: PyGObject
-Version: 3.29.3
+Version: 3.30.0
 Summary: Python bindings for GObject Introspection
 Home-page: https://pygobject.readthedocs.io
 Author: James Henstridge
index c15d2b1..6f76658 100644 (file)
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: PyGObject
-Version: 3.29.3
+Version: 3.30.0
 Summary: Python bindings for GObject Introspection
 Home-page: https://pygobject.readthedocs.io
 Author: James Henstridge
index 089b2a4..68ba6d5 100644 (file)
@@ -707,7 +707,7 @@ class Binding(GObjectModule.Binding):
 
     def unbind(self):
         # Fixed in newer glib
-        if (GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION) >= (2, 57, 2):
+        if (GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION) >= (2, 57, 3):
             return super(Binding, self).unbind()
 
         if hasattr(self, '_unbound'):
index 4e1faff..ba88913 100644 (file)
@@ -1,5 +1,5 @@
 project('pygobject', 'c',
-  version : '3.29.3',
+  version : '3.30.0',
   meson_version : '>= 0.46.0',
   default_options : [ 'warning_level=1',
                       'buildtype=debugoptimized'])
index 38bc2e4..752ccc7 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -39,7 +39,7 @@ from distutils import dir_util, log
 from distutils.spawn import find_executable
 
 
-PYGOBJECT_VERISON = "3.29.3"
+PYGOBJECT_VERISON = "3.30.0"
 GLIB_VERSION_REQUIRED = "2.38.0"
 GI_VERSION_REQUIRED = "1.46.0"
 PYCAIRO_VERSION_REQUIRED = "1.11.1"
index 1611db3..1ab73f0 100644 (file)
@@ -89,6 +89,9 @@ def init_test_environ():
     os.environ['GSETTINGS_SCHEMA_DIR'] = tests_builddir
     os.environ['G_FILENAME_ENCODING'] = 'UTF-8'
 
+    # Force the default theme so broken themes don't affect the tests
+    os.environ['GTK_THEME'] = 'Adwaita'
+
     import gi
     gi.require_version("GIRepository", "2.0")
     from gi.repository import GIRepository
index 4d0cc6b..820210c 100644 (file)
@@ -16,18 +16,16 @@ def pytest_runtest_call(item):
     like any signal handler, vfuncs tc)
     """
 
-    assert sys.excepthook is sys.__excepthook__
-
     exceptions = []
 
     def on_hook(type_, value, tback):
         exceptions.append((type_, value, tback))
 
+    orig_excepthook = sys.excepthook
     sys.excepthook = on_hook
     try:
         yield
     finally:
-        assert sys.excepthook in (on_hook, sys.__excepthook__)
-        sys.excepthook = sys.__excepthook__
+        sys.excepthook = orig_excepthook
         if exceptions:
             reraise(*exceptions[0])
index cc8dc3c..0081a02 100644 (file)
@@ -98,4 +98,3 @@ class TestGdkAtom(unittest.TestCase):
         axes = device.list_axes()
         axes_names = [atom.name() for atom in axes]
         self.assertNotEqual(axes_names, [])
-        self.assertTrue('Rel X' in axes_names)
index 17106da..bef3e9b 100644 (file)
@@ -592,7 +592,7 @@ class TestPropertyBindings(unittest.TestCase):
         glib_version = (GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION)
 
         # calling unbind() on an already unbound binding
-        if glib_version >= (2, 57, 2):
+        if glib_version >= (2, 57, 3):
             # Fixed in newer glib:
             # https://gitlab.gnome.org/GNOME/glib/merge_requests/244
             for i in range(10):