Commit b322d6a1 authored by Johan Dahlin's avatar Johan Dahlin Committed by Johan Dahlin
Browse files

Correct review comments from Martin

https://bugzilla.gnome.org/show_bug.cgi?id=672578
parent c8bc6ae1
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment