[gegl] tests: skip a python test if a known broken gi version is found
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests: skip a python test if a known broken gi version is found
- Date: Tue, 9 Dec 2014 13:46:24 +0000 (UTC)
commit 0407e35249318d8267948b994c87cffae586633b
Author: Alexia Death <alexiadeath gmail com>
Date: Tue Dec 9 15:46:08 2014 +0200
tests: skip a python test if a known broken gi version is found
tests/python/test-gegl-format.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/tests/python/test-gegl-format.py b/tests/python/test-gegl-format.py
index b812a69..12e7489 100755
--- a/tests/python/test-gegl-format.py
+++ b/tests/python/test-gegl-format.py
@@ -18,6 +18,7 @@
"""
import unittest
+import gi
from gi.repository import Gegl
@@ -34,6 +35,14 @@ 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 "SKIPED! 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
+
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]