[pygobject] Re-enable test_gi.TestPropertiesObject.test_char test



commit f2bcaa43c1158040a8c2cbc3a2ba5070d126a410
Author: Martin Pitt <martinpitt gnome org>
Date:   Fri Jan 11 14:58:44 2013 +0100

    Re-enable test_gi.TestPropertiesObject.test_char test
    
    The gobject-introspection bug got fixed:
    https://bugzilla.gnome.org/show_bug.cgi?id=691524

 tests/test_gi.py |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index 30511d0..a1c167f 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -2569,18 +2569,10 @@ class TestPropertiesObject(unittest.TestCase):
         obj = GIMarshallingTests.PropertiesObject(some_boolean=True)
         self.assertEqual(obj.props.some_boolean, True)
 
-    @unittest.expectedFailure
     def test_char(self):
-        # gobject-introspection thinks it has a guint8 type tag, which is
-        # wrong; this will raise an assertion critical which we need to ignore
-        old_mask = GLib.log_set_always_fatal(
-            GLib.LogLevelFlags.LEVEL_WARNING | GLib.LogLevelFlags.LEVEL_ERROR)
-        try:
-            self.assertEqual(self.obj.props.some_char, 0)
-            self.obj.props.some_char = GObject.G_MAXINT8
-            self.assertEqual(self.obj.props.some_char, GObject.G_MAXINT8)
-        finally:
-            GLib.log_set_always_fatal(old_mask)
+        self.assertEqual(self.obj.props.some_char, 0)
+        self.obj.props.some_char = GObject.G_MAXINT8
+        self.assertEqual(self.obj.props.some_char, GObject.G_MAXINT8)
 
         obj = GIMarshallingTests.PropertiesObject(some_char=-42)
         self.assertEqual(obj.props.some_char, -42)



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