[pygobject] Correct review comments from Martin
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Correct review comments from Martin
- Date: Wed, 21 Mar 2012 19:34:48 +0000 (UTC)
commit b322d6a1f6d44bace4eefb98558cfe94a73a727c
Author: Johan Dahlin <johan gnome org>
Date: Wed Mar 21 16:01:35 2012 -0300
Correct review comments from Martin
https://bugzilla.gnome.org/show_bug.cgi?id=672578
tests/test_everything.py | 4 ++--
tests/test_pygtkcompat.py | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/tests/test_everything.py b/tests/test_everything.py
index 3b06cb9..3bf748b 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -246,7 +246,7 @@ class TestCallbacks(unittest.TestCase):
"""
def callback():
x = 1 / 0
- print x
+ self.fail('unexpected surviving zero divsion:' + str(x))
try:
Everything.test_simple_callback(callback)
@@ -260,7 +260,7 @@ class TestCallbacks(unittest.TestCase):
"""
def badcallback():
x = 1 / 0
- print x
+ self.fail('unexpected surviving zero divsion:' + str(x))
def callback():
Everything.test_boolean(True)
diff --git a/tests/test_pygtkcompat.py b/tests/test_pygtkcompat.py
index a0bfff6..afabf07 100644
--- a/tests/test_pygtkcompat.py
+++ b/tests/test_pygtkcompat.py
@@ -14,10 +14,28 @@ import gi.pygtkcompat
gi.pygtkcompat.enable()
gi.pygtkcompat.enable_gtk(version='3.0')
+import atk
+import pango
+import pangocairo
import gtk
import gtk.gdk
+class TestATKCompat(unittest.TestCase):
+ def testObject(self):
+ self.failUnless(hasattr(atk, 'Object'))
+
+
+class TestPangoCompat(unittest.TestCase):
+ def testLayout(self):
+ self.failUnless(hasattr(pango, 'Layout'))
+
+
+class TestPangoCairoCompat(unittest.TestCase):
+ def testErrorUnderlinePath(self):
+ self.failUnless(hasattr(pangocairo, 'error_underline_path'))
+
+
class TestGTKCompat(unittest.TestCase):
def testButtons(self):
self.assertEquals(Gdk._2BUTTON_PRESS, 5)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]