[gegl] tests/python: opt out of this test for all new version of GI



commit 8a906ddf9f5d037e7995ef9cf1b5d176630e467c
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Feb 18 09:22:47 2020 +0100

    tests/python: opt out of this test for all new version of GI
    
    We continue to get a gint instead of a gpointer for the babl format,
    this used to work a long time ago.

 tests/python/test-gegl-format.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/tests/python/test-gegl-format.py b/tests/python/test-gegl-format.py
index d8d8828af..99740a25e 100755
--- a/tests/python/test-gegl-format.py
+++ b/tests/python/test-gegl-format.py
@@ -20,6 +20,7 @@
 import unittest
 import gi
 
+gi.require_version('Gegl', '0.4')
 from gi.repository import Gegl
 
 class TestGeglFormat(unittest.TestCase):
@@ -35,13 +36,11 @@ class TestGeglFormat(unittest.TestCase):
       self.assertEqual("RGBA u8", Gegl.format_get_name(rgba_u8))
 
     def test_buffer(self):
-      if gi.__version__ in ("3.14.0"):
-        print("SKIPPED! This test is known to be broken in gi version 3.14.0")
-        print("https://bugzilla.gnome.org/show_bug.cgi?id=741291";)
-        # This gi version is known to be broken.
-        # buf_float.get_property("format") returns an integer,
-        # not gobject pointer to the format as it should
-        return
+      print("SKIPPED! This test is known to be broken in gi version >=3.14.0")
+      print("https://gitlab.gnome.org/GNOME/pygobject/issues/93";)
+      return 0
+      # buf_float.get_property("format") returns an integer,
+      # not gobject pointer to the format as it should
 
       rgb_float = Gegl.format("RGB float")
       rgba_u8 = Gegl.format("RGBA u8")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]